had the same eery experience yesterday (not sure if it was after updating the ESPhome add-on, or during a restore of a backup)
stunning this can happen.
looking back, (the deletion of the Frontend happened twice) it seems that I could restart the system with the SSH terminal commands, while at the same time a Backup was restored.
Apparently the system does not have guards against those mutually lethal operations