Trouble with transitioning between animations in blendspace

Hi everyone! I am creating a level in UE5, and I am setting up my character’s movement and animation for an enemy targeting system using a blend space. I am trying to have my character lock onto and look at the enemy after the player presses a button. The targeting system itself works, but I am having an issue in which my character’s animation flickers between the walking to the left/ right and walking backwards, when locked onto an enemy, when I move backwards after moving left or right. Does anyone have any solutions to this issue? I used this tutorial: Unreal Engine 4 - Character & AI Strafe Movement - YouTube to setup the blend space for this tutorial: Unreal Engine 4 - Enemy Targeting System & Switch Attack Stance - YouTube