How do I fix these animation problem?

I’m a noob in using Unreal so please point me in the right direction. So basically i get some undesirable rotation