Cpu upgrade help

recently I got a CPU upgrade taking my Ryzen 3 3100x to Ryzen 5 5600x. So after I installed the CPU ran into thermal issues no problem added some thermal paste and boom my pc booted ,but it wasn't the same before I could run Elden ring on a smooth 50-60fps but when I tried to open elven ring (or any heavy game) and boom my pc would crash and reboot and turn back on. At first me and my friends thought it was because we forgot to update the CPU I updated it: no luck with that. We tried reinstalling the CPU. no luck with that. then I downloaded Ryzen master and my PPT (CPU socket power was going red) and my temp 40C. we thought it was the power supply but 600Watts should have been more than enough on my setup(setup at bottom). My friend told me to get a new motherboard as it may not be able to handle that much electricity through its circuit. and that's where I'm at I'm too scared to put a new motherboard at I've never built a PC from scratch but if I have to I will I just want to make sure that is the problem. please help I spent all my money on this. if you need any more info please let me know Setup: Invidia card: Geforce 1660xTi CPU: 6 core Ryzen 5 5600x 3.8 gghz (Wraith stock cooler) Motherboard: B450m Asrock 16G ram Power supply: Helios Ei-600g gold (600 wattage) 3 outtake fans 1 intake fan Windows 11 1TB NVMe SSD