Hey, I got a new pc this year in January. Since like a month ago, my pc keeps freezing when playing games. This is literally for any game. CSGO, Osu, Valorant, etc. It all happens in the middle of a game or so while playing. The screen would freeze, turn black or green or grey, have a BZZZZZZZZZZZ noise until I manually force shut down the pc. Sometimes, the audio of the game keeps going while the screen stays black and my monitor keeps detecting new output. Then it would be the blue screen of death. I've been searching for the problem for like forever and I just can't find a solution. I thought it was a gpu overheating problem but it really wasn't because I kept a fan on it to keep the degrees under 50. Still happens. I found that some people had problems with wallpaper engine but even though I don't use it, it still happens. I really don't know what to do since using the pc normally is completely fine. Only happens when I play games. I've manually restarted my pc like 40 times by now.
Here are my specs (this is my first time I had a pc so sorry if I give bad info):
CPU: Ryzen 5 2400G with Radeon Vega Graphics
GPU: Radeon RX 570 Series 8gb
Motherboard: Asrock B450 hdv
PSU: 400 Cougar 80plus
SSD: SSD 240gb smart
RAM: I couldn't find a name but it's 16gb
Here are my specs (this is my first time I had a pc so sorry if I give bad info):
CPU: Ryzen 5 2400G with Radeon Vega Graphics
GPU: Radeon RX 570 Series 8gb
Motherboard: Asrock B450 hdv
PSU: 400 Cougar 80plus
SSD: SSD 240gb smart
RAM: I couldn't find a name but it's 16gb