Use different Rig Structure for my character animation

I’m using a Mixamo model to create a Third-Person controller, and I want to use an Unreal Engine fbx animation for my animation along with the Mixamo ones, but whenever I drag my mixamo model into the Unreal Engine fbx model, I get the error
How do I use just the animation data from the differently configured Unreal rig on my Mixamo model?
I tried using using the the Unreal Engine’s avatar instead of the mixamo one for the animation, but the limbs in the animation look disfigured and clip into each other, and it doesn’t look like the original animation from Unreal Engine.