How to change root bone name of imported animation?

Hello. I’m trying to import animations in my project and every animation has it’s own root bone, like this:
image
image
When I’m trying to import only animation (without mesh) to my skeleton I’m getting this error:

Mesh contains sitting_12 bone as root but animation doesn’t contain the root track.
Import failed.

So, I’m sure, the problem will be fixed if I’ll find a way to rename root bone of animation when importing it, but how can I do this? I can’t do it manually, because it’s too much of animations, and I can’t do it inside of ue5 because not every animation has mesh inside of it.