Mesh completely distorted when assigning animation

I’ve tried both approaches, importing as different skeleton and as the same skeleton. The distortion happens when I set it to be the same skeleton. When I import it as a different skeleton it doesn’t let me share the animations at all, even though it automatically matches the bones (because same name and hierarchy).