Like Johamburger said, it is probably an overheating issue. It might be your graphics card or your processor. Clear dust off the mobo/gpu and vents on the case.
If the motherboard died, you wouldn't be able to use the computer anymore. If it shits the bed when you launch a game, it's probably the GPU or CPU reaching a critical temperature and going "nope."