just put a new cpu into my pc, went from a ryzen 5 3600 to a ryzen 5 5600x and did all the driver installer and stuff, i can play every game perfectly fine but when i open fortnite or warzone my pc restarts itself, straight up turns off and back on again for me to sign in, i can play cyberpunk, bauldurs gate 3 just fine but when fortnite or call of duty opens it fully reboots itself. ive tried everything from reinstalling drivers and reinstalling windows and none of it still works.
Specs
ryzen 5 5600x
asrock b550 phantom gaming motherboard
32 gb of ddr4 ram running at 3200mhz
msi rx 6600xt oc edition