I definitely think it's overheating. Try keeping your case open and see if it happens again!

Last month, the fan on my graphics card broke and it was causing some major overheating issues, and it did this exact thing when I tried to run games. >< Try checking if everything is ok inside! Maybe you might have the same issue as me!