This can be if it is getting too hot inside the case.
If you have had it a while the fans and air vents may be full of dust stopping the cold air circulating.
Take the case uotside, remove the cover, and GENTLY blow the dust out with a hair drier (turn the heat off and have it on cool)
If any dust is stuck GENTLY prize it off with a pencil (nothing metal) and again blow it out.
Once all the dust is out replace cover and try again.
Make sure there is plenty of room round the PC case and the air can get in and out.