I’ve had that occasionally with my D1 Minis. Try a power cycle: no idea why that works but it solved it for me. To avoid that in future, put a restart switch in your config and you can reboot it from HA.
The timeout is when there’s been no communication for a few seconds. If it’s slow but consistent it should still work.