computer crashes, requires startup repair, whilst gaming

This happens whilst gaming. It can freeze/crash at any time and in any game. The computer will then no longer boot up and I will need to perform the start up repair. The computer works fine after that for a while until the next crash inevitably happens.

There isn't any performance issues or any hint at anything wrong prior to the crash.