Whats the best way to correct animations for different weapons? In UE4 or back in Maya/MAX?

I’m new to Unreal. Trying to get away from CRYENGINE after several years due to the updates killing my projects.

When the animations don’t line up with the weapon as we see here, in this tutorial, which is great by the way, would anyone recommend fixing that in unreal or back in Maya/MAX? I could potentially realign my skeleton with the new weapon and export the fbx files but if there is an easier way in UE that I just don’t know about that would be great. Hope I’m posting in the right spot. If not I apologize. First post.