Walking backwards causes animation to stutter

I made a blendspace with locomotion animations and when I walk backwards this happens:


My blendspace:

I tried to search tutorials and posts to fix it but every one it’s outdated.