I woke up to find my phone off, I knew the battery was charged so I turned it on, when the phone booted and got to the lock screen the powering off box popped up and it shut down. I tried multiple times to boot but every time the powering off box would pop up and the phone would shut off. So I booted into recovery and wiped the phone, that didn't fix it, the phone is still shutting down upon boot, does anyone have any suggestions?
Update: I have flashed the stock rom and wiped all the caches and its still shutting down once it gets to the lock screen. Its almost like the power button is stuck, but I'm able to navigate in recovery fine so I don't believe that's possible.