Uefy 2.0 (Pro Edition) make Blender's rigify rigs compatible with UE5, also has a FREE version

Adding a custom mapping can be difficult. You should first try to use the process shown in this video to get the rig you need. Convert Existing Character to Unreal Engine 4 with Blender and Uefy Script - YouTube

The new bone roll tools from update 1.2 work very well. I might remove custom mappings altogether in a future update.