Sounds like you are overheating. if you have poor circulation, or a bad seat with your CPU to your MB this can happen. Or your power supply is failing or another component. Those are the only reasons I've ever seen for a pc just shutting off, and I've seen a lot of them.