Freezes when creating or changing Variable

Hello, I have had a reoccurring issue for some time now,

Essentially, whenever I add a new variable or change its type. The editor freezes. I can still move my mouse, but I cannot click on anything, and must use task manager to close the Engine, which results in the task manager also not responding