Walking animation acts weird when played

I’m trying to create a custom animation for my characters walking.
The problem is, when my character starts walking and the animation plays, after a bit of walking the animation slowly becomes more and more weird. The legs are also a small bit de-attached from the torso and the animation also looks a bit off.

This is a video demonstrating what happens when walking:


This is how it is supposed to look like:

I’ve tried switching the animation priority, but it still remains unaffected.
Currently, the animation priority is at its maximum, Action 4.
In the videos shown, the animation priority is also at its maximum.

I would appreciate any help possible, thanks.

I don’t know exactly how to solve it
but try to make your animation duration match the classic animation duration

With that angle of view, it’s hard to see what’s wrong. Could you please reattempt showing the issue in other angles?
Thanks.

Did you create the anim using the same rig your avatar is? An r15 anim might not look right on a r6 avatar and vice versa.