Using Animation Blueprint Linking Leads to Huge Lag in Editor Mode

Hi. I’ve set up Unreal’s Animation Blueprint Linking as shown in the official documentation to enable dynamic switching between an AnimBP for locomotion and an AnimBP for the execution of abilities like range attacks. As shown in the video, the unlinking process leads to a huge lag in editor mode. The linking and unlinking are pretty straight forward as you can see in the pictures I’ve provided.

1.) Links anim class layer if a certain InputAction event was fired
2.) The active anim class unlinks itself if a certain AnimNotify was fired. It’s basically the moment when the range attack animation has finished as you can see in the video.

The lag only appears when the unlinking process was fired the first time. Any ideas on how to prevent this? The current engine version is 4.25.4.

Greetings

Peter