After the import of the fbx character with a skeleton and its animation from 3ds max, everything breaks down

I separately exported 2 different FBX files: my animation of a skeleton and the character with that skeleton. However, when I imported them in UE5, my looped animation broke and didn’t look the same as in 3ds max.