HA crashing when trying to add a device

first time i am adding a esp device. just installed esphome and clicking to add device. choosing the device and then HA restarts.

in the logs:

22-03-11 23:40:00 ERROR (MainThread) [supervisor.homeassistant.core] Home Assistant has crashed!
22-03-11 23:40:00 ERROR (MainThread) [supervisor.core] Can't start Home Assistant Core - rebuiling

this happens everytime i try to add device. any ideas?