Mirror option for custom rig works incorrectly. Any fix?

I’ve been working with my own character rig (made in Blender) and encountered a issue when editing the physics asset.

Basically the “Mirror” option creates incorrect result on my rig, with the physics body flipped around the bone’s root.

To illustrate the issue I’ve imported a Manny model with a very simple custom rig, and manually created a physics body on the left leg bone:

And then when I used the Mirror option on it, a physics body was automatically created on the right side, misplaced:

I assume the issue is caused by the inconsistency of bone orientation between Blender and UE, that UE recognizes X as bones’ main axis (so it mirrors the bodies around X) while Blender rigs have Y as bone axis.

Is there any way I can get the mirror function to work as intended?