Problem with esphome

Hassos, Raspberry pi 4.
there are 6 esp home lamps. home assistant loses connection gradually. after 3-5 days, the home assistant does not see a single lamp. At the same time, the ping on the lamps passes and the web interface of the lamps is available. Restarting the lamps does not give a result. Only a reboot of the home assistant is required. What could be the problem?

HA no longer sees the lamp with ip
Reboot HA 13:00