How to lock a bone in place despite physical animations

Hey all, interesting “puzzle” I’m facing.
If you had physical animations on a character with a 2 handed sword.
The sword is locked to the main hand via socket, how do you lock the second hand in and have it so the physical animations don’t mess it up?

I tried an IK as you would do but I think the physical animations are calculated afterwards, so the hand doesn’t line up and wobbles out of place.

Hello, I’m facing the same “puzzle”, were you able to come up with a solution? If so, could you please share it?