Retargeting animation causes crash every time

I hope this can help someone. (UE5.1)
I wasn’t using Metahuman but having the same problem.
It was fine before editing bones for matching initial pose between source and target.
but when I edit a single bone and export animation, it crashed.

Here is the solution:
Don’t edit target skeleton, edit Source Skeleton!
it works magically for me. Checked by restarting editor several times.