Konnected Board keeps rebooting after connecting to smartthings

System worked perfectly until recently. I had a issue and rewired everything. Wiring has been confirmed to be correct. Only using door contacts currently. I have flashed to the newest firmware and updated all apps in smart things. After a factory reset I connect to WiFi without any issues. After that I sync with smartthings then my board keeps rebooting. Connects to WiFi pulls a new IP every time. Then quickly reboots. It keeps getting stuck in this loop. Even went ahead and purchased a brand new esp board with same result. Any thoughts?

Figured it out. I am also running home assistant. It looks like it causing an issue due to having discovery mode on while I was adding the device into smartthings. I stopped home assistant from running during adding the board into smartthings.