So my One's battery died the other day and it obviously shut off. no big deal, I plugged it in and went on my way making some dinner. Then a few hours later I went to bed and turned the phone on and it booted up just fine. Then I went to set my alarm for the next morning and it reset itself. This continued endlessly. Reset, boot into android, sit for 30 seconds and reboot. I can get into recovers and was able to clear cache and what not which did not help. I also did a backup and factory reset, then restored with no luck. I ended up restoring an old back up which seems to have worked for the day. However I just flashed a theme and it did not take, so I cleared cache and now I'm in this same boot loop.
Any ideas? I'm using a Bad Boyz 4.4.2 kitkat rom. I've been using it since the beginning of the year with no issues until now.
Any ideas are appreciated.