Electrical Socket goes offline (while the one beside it does not)

I have eleven in-wall electrical sockets that are network attached, from two different manufacturers.

Two of the sockets are routinely offline in home assistant, and are unresponsive for long periods of time. They go offline, while the same model outlet, in the wall right next to it, does not go offline and is responsive.

They are all on the network, and do not drop, as I can see this on my Unifi dashboard. They all have strong WiFi signals. Also, while they are offline in Home Assistant, I can switch to the Tuya app and control them from there with no problem.

So this seems like a Home Assistant status/query issue.

Why would this happen? How can I debug this problem?