I used to have this problem, very frustrating and worrisome.
It started happening when I updated to a certain firmware version, I can't remember which one right now, but after confirming that my phone has the Insane chip and thus is vulnerable to the Sudden Death bug (check through "eMMC check"...