I had exactly the same problem as you described. I thought it was from power button so I opened the back of the phone and checked the button for any dirt or loose connection. It wasn't power button. I have done "wipe cache partition" and seems that worked so far. It has not shut down for 2 days...