Strange animation retargeting

I have two models with a standard unreal skeleton, I need to use animations from one model on the other, the result of retargeting is completely different, tell me how best to work with this

result:

unreal mannequin skeleton:

model with same skeleton:

retargeting settings: