What are your system specs. It sounds like the CPU is overheating. If what Bighorn advised doesn't work, you may need to reapply the thermal compound. The stock stuff has a habit of getting hard over time and become less effective. But I'd check and make sure the fans are all spinning, blow it out with some compressed air first. Maybe download Hwmonitor and see what the cpu temps are before it shuts down.