When MacBook runs out of battery after restart message problem detected occurs
I think it's normal, because before exhausting the battery completely (around 3-5%) it goes into a sleep mode. But if it is completely exhausted, the message it mentions is displayed and allows you to restore what you had previously opened or restart the startup.