Check your cpu heatsink and fan for dust; if it is clogged up, the cpu isnt cooling properly and may be shutting down.
You should check this for all fans, filters and heatsinks at least every 6 months; more often if your PC is on the floor, where there is more dust to suck inside.
I clean mine using a 1" paint brush and the hoover to suck the loosened dust away, other people use compressed air, but this just blows the dust around, so it will be back to clog everything up again.