A problem occurs when retargeting

I used three more addons, including Rococo Add-on Auto League Pro Add-on, because I needed retargeting for my ongoing work, but all of them did not work properly except for Rococo Add-on, and some joints were twisted, such as upper arms and lower arms.

The graph editor tried to solve this by moving the key frame and rotating the joint, but if you strike a natural pose when raising the arm, the joint will be bent strangely if you lower the arm, and you are currently facing a difficulty.

How can I solve this problem?