What causes a full restart vs a resume when battery dies?
This is likely the cause of your system going down while in the process of performing a reboot. The most common cause of this is system updates loading in the background. Lots of times these updates will require a restart after installing. In addition, do you happen to have the computer scheduled for reboot?
This can be confirmed in System Preferences > Energy Saver > Schedule. Resume only occurs if the last known state was you logged into your home account.