The in UE5 makes my GPU and CPU usage go to the max

The in UE5 makes my GPU and CPU usage go to the max and I can’t seem to figure out why. My computer can run the program in 3D with ultra without any problems. However, the moment I right-click anything everything just lags out. I have seen that some solve this issue by disableing gsync, but I use AMD, and I have tried disableing freesync (the amd equvilent of gsync)

Specs:
CPU: AMD Ryzen 7 5800x 8-Core Processor
GPU: AMD Radeon RX 6600 XT
16 GB ram