ESP8266 errno 104 connection reset by peer

I’ve searched around on this one but all other posts are in connection with flashing the device.

I have 4x dallas sensors in an ESP8266. It works fine 99% but every so often it ‘becomes unavailable’ which messes up some automations. I dont think its WIFI signal as I have two 8266’s next to each other and the other is very stable. It hasnt become unavailable once. Also, they are both plugged into the same USB socket so cant see the problem being power.

The device drops out and I get the following -

WARNING stove-sensors: Connection error occurred: [Errno 104] Connection reset by peer
INFO Processing unexpected disconnect from ESPHome API for stove-sensors
WARNING Disconnected from API
INFO Successfully connected to stove-sensors in 0.005s
INFO Successful handshake with stove-sensors in 2.891s
[15:23:39][D][dallas.sensor:143]: 'Sensor 1': Got Temperature=11.9°C
[15:23:39][D][sensor:093]: 'Sensor 1': Sending state 11.87500 °C with 1 decimals of accuracy
[15:23:39][D][dallas.sensor:143]: 'Stove Sensor': Got Temperature=63.6°C
[15:23:39][D][sensor:093]: 'Stove Sensor': Sending state 63.56250 °C with 1 decimals of accuracy
[15:23:39][D][dallas.sensor:143]: 'Stove Flow': Got Temperature=61.6°C
[15:23:39][D][sensor:093]: 'Stove Flow': Sending state 61.56250 °C with 1 decimals of accuracy
[15:23:39][D][dallas.sensor:143]: 'Stove Return': Got Temperature=53.4°C
[15:23:39][D][sensor:093]: 'Stove Return': Sending state 53.37500 °C with 1 decimals of accuracy
[15:23:46][D][api:102]: Accepted 192.168.1.154
[15:23:46][W][component:214]: Component api took a long time for an operation (0.29 s).
[15:23:46][W][component:215]: Components should block for at most 20-30ms.

Has anyone got any ideas on what it could be?