Editor getting stuck on loading after a Cast in the Animation BP

Hello, I would really appreciate if someone could help me out. I am having some trouble restarting the editor if I add a cast in my animation BP.

Here everything works fine:

But If I add a cast to VegetaBP (which is a BP, based on a C++ class) then I can’t restart the editor, it gets stuck on loading at 71%. It works just fine when the editor is already open, in which case I have no problems running the game.

Any idea on what is wrong? The only differences between VegetaBP and its parent class are some default values (camera position and mesh position). Please tell me if additional information is required. Thanks.