How can I import skeletons correctly from Blender to UE4?

could you provide more description of the bone problem, you said
“the root bone collapses into the origin, moving the other bones up in the hierarchy.”
but i don’t see that effect in the images you posted.

maybe turn off AddLeafBones and check OnlyDeformBones, in your blender FBX export settings.