Sorry for the late reply. Something was wrong with the skeleton, but only on the animations that had the rifle idle base pose, so moving that one did the trick.
And yes, thanks for the TwoBoneIK advice, I checked it out and it really helps keeping the hands on the rifle when I switch between Unreal animations and Mixamo or others.