How do I avoid scaling the animation when scaling the object?

I have made an animation in the Unity animation window. When root motion is disabled, the animation works, but when root motion is enabled, the object goes upwards instead of downwards as specified in the animation. How can I fix the animation so that it works with root motion?

Here is a video showing the issue

EDIT: I managed to fix the rotation issue by rotating the gameobject to the initial rotation before the animation plays. But now I have another issue: since the gameobject is scaled by 12, the animation is also scaled by 12, so the object goes way too far. Is there a way to disable animation scaling? I already recorded the animation with everything scaled up.

Try putting your object in an empty and then scaling the empty