Had the sleep states turned on and would randomly die at 60% battery while sleeping. Found out its a long standing bug in dells. Sometimes it just restarts the machine so if its in a bag it will just keep running.
Turned of sleep states in firmware and instead now it goes to hibernate on sleep. No random behavior or shutdown.
Its mind boggling this shit used to work totally fine on older laptops, no idea what changed.