Entity not available after a reboot. Restart will fix. How to prevent?

Hi

Sometimes after a reboot of my Ubuntu Server with Hassio I get some entities like this:

57

They are the ones connected via MQTT and the ones connected via zigbee2mqtt, both addons of Hassio.

If then I restart Hassio, all is ok.

Since in this state the entities do not exist, is there a way to check this situation (a known entity missing) in order to create an automation that will restart Hassio?

Thanks