S4 cannot load past the SG4 logo

A

AC Question

My phone turned off for no reason at around 40% and now it won't boot anymore. When I try to turn it on, it shows the Samsung Galaxy S4 text and turns off again. I tried soft resetting and I can't go into recovery mode since I never get that far before it turns off again. It's also not rooted. The battery isn't inflated and the gold connectors on both the phone and the battery are fine. It also isn't stuck in a bootloop as it turns off without turning itself on again. Anyone how to fix this? Or at least what's the cause of the issue?