unreal engine lags, then crashes FPS in editor going crazy

So, I am having some issues with the Unreal Engine. as I posted before it has an odd FPS issue.

it also has been lagging out and pegging the usage of my Ryzen 9 12core processor which causes the rgb to turn off and then inevitably crashes saying it’s the GPU which is a 7900xtx.

So PC stats:

AMD Ryzen 9 12-core processor, on an asus prime x750 -p motherboard
64 Gig of ram
Radeon 7900xtx GPU

I don’t know what is going on but I would love to find a fix.