I was listening to YouTube. The phone was in my pocket. It suddenly died. It could be that it lost battery life (since it was in the pocket, I would not have noticed that warning). It could also be that it got too hot in that pocket.
I have tried resetting to factory settings numerous times...