Lagging after going to the menu

Whenever I go to the menu my game starts to lag immensly. (RTX4070, Ryzen7 7700, 32Gb)