UE4 Editor Slows to 4fps when renaming?

The Unreal Engine Editor normally runs at a smooth 120fps for me, but for some reason when I make a new variable and rename it something that overlaps with another existing variable (like “playerCamera” when “playerGun” already exists) the editor locks at around 3 or 4 fps until I restart the project. Important to note that I can still run my game and it runs smoothly. It is ONLY the editor that is lagging. Any Ideas?