Unreal freeze using export_anim_sequence

Hey I’m trying to use SequencerTools.export_anim_sequence in Unreal 5.3 and the Unreal freeze.
Someone knows how to fix this?

level_sequence = unreal.LevelSequenceEditorBlueprintLibrary.get_current_level_sequence()
req_skeleton = '/Game/base_skel.base_skel'
anim_seq_tmp = '/Game/temp/'
binding = level_sequence.find_binding_by_name("Body")
editor_subsystem = unreal.get_editor_subsystem(unreal.UnrealEditorSubsystem)
world = editor_subsystem.get_editor_world()
asset_tools = unreal.AssetToolsHelpers.get_asset_tools()
seq_factory = unreal.AnimSequenceFactory()
seq_factory.target_skeleton = unreal.load_asset(req_skeleton)
anim_sequence = unreal.AssetTools.create_asset(asset_tools, asset_name="ctrlrig_animsequence", package_path=anim_seq_tmp,
                                               asset_class=unreal.AnimSequence,
                                               factory=seq_factory)
anim_seq_export_options = unreal.AnimSeqExportOption()
anim_seq_export_options.export_transforms = True
anim_seq_export_options.export_morph_targets = True
anim_seq_export_options.export_attribute_curves = True
anim_seq_export_options.export_material_curves = True
anim_seq_export_options.evaluate_all_skeletal_mesh_components = True
anim_seq_export_options.interpolation = unreal.AnimInterpolationType.LINEAR
anim_seq_export_options.curve_interpolation = unreal.RichCurveInterpMode.RCIM_LINEAR
anim_seq_export_options.transact_recording = True
# Bake to the created AnimSequence
unreal.SequencerTools.export_anim_sequence(world, level_sequence, anim_sequence, anim_seq_export_options,
                                           binding, False)