Question PC crashes and restarts when trying to play/load game

BenceTb

Distinguished
Jun 24, 2013
19
0
18,510
A few days ago i switched out a few components in my pc(motherboard, cpu, ram, ssd), and i did a clean windows install. everything works fine, but when i try to play for example need for speed heat, my pc just crashes and restarts without any warning or error message. but when i'm playing Valorant, i can play for 4-5 hrs without any problems. stress tests like aida64, prime95 work fine, and i tried windows memory diagnostic, no error found. Everything was fine with my old setup, so i don't think it's the psu or gpu. i'm running the cpu at stock speeds, memory tried with stock and both xmp profiles. I have no idea if this is a hardware or software issue.
Temps are fine btw, have an aftermarket cpu cooler, cpu doesn't get hotter than about 65C, and also have 3 fans, so motherboard shouldn't be overheating either. Also, pc usually crashes while trying to load the game, so it's not enough time for the components to get hot.
Specs:

AMD ryzen 5 1600 af
Asrock b450m pro4 (tried with bios 3.50 and 3.90)
Kingston hyperx fury ddr4 2x8gb 3200mhz
500gb wd blue ssd
Radeon rx 480 8gb (worked perfect before upgrades)
PSU thermaltake smart se 530w (worked perfect before)
 

BenceTb

Distinguished
Jun 24, 2013
19
0
18,510
In event viewer i get a Kernel-Power critical error, with event id 41. this is what it says:

BugcheckCode 0
BugcheckParameter1 0x0
BugcheckParameter2 0x0
BugcheckParameter3 0x0
BugcheckParameter4 0x0
SleepInProgress 0
PowerButtonTimestamp 0
BootAppStatus 0
Checkpoint 41
ConnectedStandbyInProgress false
SystemSleepTransitionsToOn 1
CsEntryScenarioInstanceId 0
BugcheckInfoFromEFI false
CheckpointStatus 0
CsEntryScenarioInstanceIdV2 0
LongPowerButtonPressDetected false

Also here is my dxdiag file:
DxDiag