|If you're having a hardware problem, formating & reinstalling Windows isn't going to fix it, so I recommend you try troubleshooting.|
It's possible the CPU is overheating, so the 1st thing you should do is blow the dust out of the cooling vents. Use a can of compressed air if you have one, or you can even try putting your mouth up to each vent, then huff & puff. If a bunch of dust comes out using the 'mouth method', get a can of air & give it a good blast.
Another thing you should do is disable the auto-restart feature. That will keep the blue screen displayed so you'll be able to record the STOP code & error message, then maybe one of us can help find the fix. Here's how it's done:
Can you boot into safe mode?