Question PC crashing while gaming

Apr 3, 2020
2
0
10
When I'm playing some games my computer glitches out, the sound glitches out and my cooler starts to be loud that only happens for a second then my screen goes black and I only have a prompt that there is no HDMI cable input and after second or two i can hear everything and the only thing I can do is turn off my PC via the power button. This problem happens when I play games when I play games that my PC should be able to run and it also crashes at moments where there isn't anything graphically challenging (like just a list of servers is on my screen). This doesn't happen as soon as I enter the game I would be playing it for some time and then it would crash. I don't know if this is a hardware or a software problem (I also did a sfc scan and it did show I have missing program files, I don't know if that would be relevant to my problem). Also I did a burn test for my GPU and everything was normal. I would really appreciate if someone knew how I could fix this problem. Here are my specs:
Processor: Intel i5-2400 3.10 GHz 8 GB RAM
Graphics card: NVIDIA GeDorce GT 1030 2GB RAM