Crash when right clicking in AnimGraph

Hello, i created an animBP for a gun, but everytime i right click in the animgraph to open menu, the editor crashes.
I tried deleting the BP and creating another, but the problem persists.
Here is the log

After some experiments, i found that the “Use legacy blueprint system” option was causing the issue.