UnrealEditor 5.3 Crashes while spawing actor via command line using python, but it was working fine in 5.1

Command used to spawn actor:

asset = unreal.load_asset('/Game/cache')
ls = unreal.load_asset('/Game/test')

actor_ = unreal.get_editor_subsystem(unreal.EditorActorSubsystem).spawn_actor_from_object(
    asset,
    location=unreal.Vector(x=0.0,
                           y=0.0,
                           z=0.0),
    rotation=unreal.Rotator(0.0,
                            0.0,
                            0.0))

Crash Log:

OUT: [2024.03.30-12.04.21:607][ 0]LogWindows: Error: === Critical error: ===

OUT: [2024.03.30-12.04.21:608][ 0]LogWindows: Error:

OUT: [2024.03.30-12.04.21:608][ 0]LogWindows: Error: Fatal error!

OUT: [2024.03.30-12.04.21:608][ 0]LogWindows: Error:

OUT: [2024.03.30-12.04.21:608][ 0]LogWindows: Error: Unhandled Exception: EXCEPTION_ACCESS_VIOLATION reading address 0x0000000000000040

OUT: [2024.03.30-12.04.21:608][ 0]LogWindows: Error:

OUT: [2024.03.30-12.04.21:608][ 0]LogWindows: Error: [Callstack] 0x00007ff9dc7863a8 UnrealEditor-EditorFramework.dll!UnknownFunction

OUT: [2024.03.30-12.04.21:609][ 0]LogWindows: Error: [Callstack] 0x00007ff987870954 UnrealEditor-UnrealEd.dll!UnknownFunction

OUT: [2024.03.30-12.04.21:609][ 0]LogWindows: Error: [Callstack] 0x00007ff98852be98 UnrealEditor-UnrealEd.dll!UnknownFunction

OUT: [2024.03.30-12.04.21:609][ 0]LogWindows: Error: [Callstack] 0x00007ff9889cce71 UnrealEditor-UnrealEd.dll!UnknownFunction

OUT: [2024.03.30-12.04.21:609][ 0]LogWindows: Error: [Callstack] 0x00007ff9889cd229 UnrealEditor-UnrealEd.dll!UnknownFunction

OUT: [2024.03.30-12.04.21:609][ 0]LogWindows: Error: [Callstack] 0x00007ff987722578 UnrealEditor-UnrealEd.dll!UnknownFunction

OUT: [2024.03.30-12.04.21:610][ 0]LogWindows: Error: [Callstack] 0x00007ff9ae1ad280 UnrealEditor-CoreUObject.dll!UnknownFunction

OUT: [2024.03.30-12.04.21:610][ 0]LogWindows: Error: [Callstack] 0x00007ff9ae4b828f UnrealEditor-CoreUObject.dll!UnknownFunction

OUT: [2024.03.30-12.04.21:610][ 0]LogWindows: Error: [Callstack] 0x00000142ce7b2561 UnrealEditor-PythonScriptPlugin.dll!UnknownFunction

OUT: [2024.03.30-12.04.21:610][ 0]LogWindows: Error: [Callstack] 0x00000142ce787d0e UnrealEditor-PythonScriptPlugin.dll!UnknownFunction

OUT: [2024.03.30-12.04.21:612][ 0]LogWindows: Error: [Callstack] 0x00000142ce78743b UnrealEditor-PythonScriptPlugin.dll!UnknownFunction

OUT: [2024.03.30-12.04.21:612][ 0]LogWindows: Error: [Callstack] 0x00000142ce7888e5 UnrealEditor-PythonScriptPlugin.dll!UnknownFunction

OUT: [2024.03.30-12.04.21:612][ 0]LogWindows: Error: [Callstack] 0x00000142ce72d24e UnrealEditor-PythonScriptPlugin.dll!UnknownFunction

OUT: [2024.03.30-12.04.21:612][ 0]LogWindows: Error: [Callstack] 0x00007ff977be1b2c python39.dll!UnknownFunction

OUT: [2024.03.30-12.04.21:612][ 0]LogWindows: Error: [Callstack] 0x00007ff977bd5354 python39.dll!UnknownFunction

OUT: [2024.03.30-12.04.21:613][ 0]LogWindows: Error: [Callstack] 0x00007ff977bcaaa3 python39.dll!UnknownFunction

OUT: [2024.03.30-12.04.21:613][ 0]LogWindows: Error: [Callstack] 0x00007ff977be4735 python39.dll!UnknownFunction

OUT: [2024.03.30-12.04.21:613][ 0]LogWindows: Error: [Callstack] 0x00007ff977be606f python39.dll!UnknownFunction

OUT: [2024.03.30-12.04.21:613][ 0]LogWindows: Error: [Callstack] 0x00007ff977be60b1 python39.dll!UnknownFunction

OUT: [2024.03.30-12.04.21:613][ 0]LogWindows: Error: [Callstack] 0x00000142ce79ab53 UnrealEditor-PythonScriptPlugin.dll!UnknownFunction

OUT: [2024.03.30-12.04.21:613][ 0]LogWindows: Error: [Callstack] 0x00000142ce7cce8c UnrealEditor-PythonScriptPlugin.dll!UnknownFunction

OUT: [2024.03.30-12.04.21:614][ 0]LogWindows: Error: [Callstack] 0x00000142ce79af65 UnrealEditor-PythonScriptPlugin.dll!UnknownFunction

OUT: [2024.03.30-12.04.21:614][ 0]LogWindows: Error: [Callstack] 0x00000142ce744168 UnrealEditor-PythonScriptPlugin.dll!UnknownFunction

OUT: [2024.03.30-12.04.21:614][ 0]LogWindows: Error: [Callstack] 0x00007ff69952733f UnrealEditor-Cmd.exe!UnknownFunction

OUT: [2024.03.30-12.04.21:614][ 0]LogWindows: Error: [Callstack] 0x00007ff69951cfb6 UnrealEditor-Cmd.exe!UnknownFunction

OUT: [2024.03.30-12.04.21:614][ 0]LogWindows: Error: [Callstack] 0x00007ff69951d37a UnrealEditor-Cmd.exe!UnknownFunction

OUT: [2024.03.30-12.04.21:614][ 0]LogWindows: Error: [Callstack] 0x00007ff699520854 UnrealEditor-Cmd.exe!UnknownFunction

OUT: [2024.03.30-12.04.21:615][ 0]LogWindows: Error: [Callstack] 0x00007ff699536984 UnrealEditor-Cmd.exe!UnknownFunction

OUT: [2024.03.30-12.04.21:615][ 0]LogWindows: Error: [Callstack] 0x00007ff699538eb6 UnrealEditor-Cmd.exe!UnknownFunction

OUT: [2024.03.30-12.04.21:615][ 0]LogWindows: Error: [Callstack] 0x00007ffa57b1257d KERNEL32.DLL!UnknownFunction

OUT: [2024.03.30-12.04.21:615][ 0]LogWindows: Error:

OUT: [2024.03.30-12.04.21:622][ 0]LogExit: Executing StaticShutdownAfterError

OUT: [2024.03.30-12.04.21:626][ 0]LogWindows: FPlatformMisc::RequestExit(1, LaunchWindowsStartup.ExceptionHandler)

OUT: [2024.03.30-12.04.21:626][ 0]LogWindows: FPlatformMisc::RequestExitWithStatus(1, 3, LaunchWindowsStartup.ExceptionHandler)

OUT: [2024.03.30-12.04.21:626][ 0]LogCore: Engine exit requested (reason: Win RequestExit)

ERROR: Error [GENERAL | | OpenXR-Loader] : RuntimeManifestFile::FindManifestFiles - failed to find active runtime file in registry

ERROR: Error [GENERAL | xrEnumerateInstanceExtensionProperties | OpenXR-Loader] : RuntimeInterface::LoadRuntimes - unknown error

ERROR: Error [GENERAL | xrEnumerateInstanceExtensionProperties | OpenXR-Loader] : RuntimeInterface::LoadRuntimes - failed to load a runtime

ERROR: Error [GENERAL | xrEnumerateInstanceExtensionProperties | OpenXR-Loader] : Failed to find default runtime with RuntimeInterface::LoadRuntime()

ERROR: Error [GENERAL | xrEnumerateInstanceExtensionProperties | OpenXR-Loader] : Failed querying extension properties