I had the same issue and it turns out the phone had some light water damage (though for the life of me I don't know how - never took the case off, kept a screen cover on.) Sometimes I have to wonder if some phones are more prone to letting moisture from the air (or a sweaty locker room for instance) get inside.
I didn't replace mine. Moved on to Moto. Having a much better experience overall.
Sent from my XT907 using Android Central Forums