PC is shutting down only while gaming

Build: Ryzen 5600 / 1x16GB@3200 Geil / MSI B550M PRO-VDH / Gigabyte RX 6500XT / MSI MAG 500W

It all started a few months ago when my pc started to turn off while I was playing valorant. It was rare, so I just ignored it. But has progressively gotten worse. Now if I play valorant for more than 2 hours it eventually shuts down. In Factorio it only takes from 5 to 20 minutes. These are the ONLY situations where it happens.

What I have tried so far: 1. Entirely rebuild the pc, cleaned everything and changed the thermal paste — It was a bit dusty. The cpu never crossed 65°C, but I tried anyway. Neither worked. 2. Updated the BIOS and every possible driver — didn’t work. 3. Messed around with some CPU tweaks via bios — power limiting, undervolt, underclock, didn’t work. 3. Underclock and undervolt of the GPU — didn’t work.

What’s REALLY driving me crazy is the fact that it never turns off during a stress test. I have used Aida64 to stress every part individually and the whole computer at the same time for about 30 minutes each and nothing happens. But for some reason, while gaming, with normal temperatures and normal usage of the parts, something’s shutting off the pc.

My thoughts: 1. I believe it’s not the PSU or any temperature — common causes — because like I said, it doesn’t happen in a stress test where every part is pulling maximum energy, so it my head it can’t be it. 2. I also don’t think it’s the GPU because it only happened twice in Forza, where the GPU is the bottleneck. 3. For some reason I’m thinking about the CPU. It has gotten worse since I’ve increased my refresh rate from 60 to 180Hz and it only started to happen on Factorio when my base grew bigger. Both situations increased the load on the CPU. What’s weird is that the usage doesn’t get really high and the underclock and undervolt had absolutely no effect. So this theory isn’t strong.

I really have no idea what to do.

My last possible solution is to switch every part at a time to see if the problem disappears. It’s going to be a pain…

Build: Ryzen 5600 / 1x16GB@3200 Geil / MSI B550M PRO-VDH / Gigabyte RX 6500XT / MSI MAG 500W

It all started a few months ago when my pc started to turn off while I was playing valorant. It was rare, so I just ignored it. But has progressively gotten worse. Now if I play valorant for more than 2 hours it eventually shuts down. In Factorio it only takes from 5 to 20 minutes. These are the ONLY situations where it happens.

What I have tried so far: 1. Entirely rebuild the pc, cleaned everything and changed the thermal paste — It was a bit dusty. The cpu never crossed 65°C, but I tried anyway. Neither worked. 2. Updated the BIOS and every possible driver — didn’t work. 3. Messed around with some CPU tweaks via bios — power limiting, undervolt, underclock, didn’t work. 3. Underclock and undervolt of the GPU — didn’t work.

What’s REALLY driving me crazy is the fact that it never turns off during a stress test. I have used Aida64 to stress every part individually and the whole computer at the same time for about 30 minutes each and nothing happens. But for some reason, while gaming, with normal temperatures and normal usage of the parts, something’s shutting off the pc.

My thoughts: 1. I believe it’s not the PSU or any temperature — common causes — because like I said, it doesn’t happen in a stress test where every part is pulling maximum energy, so it my head it can’t be it. 2. I also don’t think it’s the GPU because it only happened twice in Forza, where the GPU is the bottleneck. 3. For some reason I’m thinking about the CPU. It has gotten worse since I’ve increased my refresh rate from 60 to 180Hz and it only started to happen on Factorio when my base grew bigger. Both situations increased the load on the CPU. What’s weird is that the usage doesn’t get really high and the underclock and undervolt had absolutely no effect. So this theory isn’t strong.

I really have no idea what to do.

My last possible solution is to switch every part at a time to see if the problem disappears. It’s going to be a pain…