FPackageBuildDependencyTracker::StaticOnObjectHandleRead() error when trying to package game

Hi. I’m having a troubling error that’s preventing builds from being cooked when using the Project Launcher. The error occurs when beginning stack for UAT and looks like this

LogWindows: Error: begin: stack for UAT
LogWindows: Error: === Critical error: ===
LogWindows: Error:
LogWindows: Error: Fatal error!
LogWindows: Error:
LogWindows: Error: Unhandled Exception: EXCEPTION_ACCESS_VIOLATION reading address 0x00000000000ba8e2
LogWindows: Error:
LogWindows: Error: [Callstack] 0x00007ff81917fd52 UnrealEditor-UnrealEd.dll!FPackageBuildDependencyTracker::StaticOnObjectHandleRead() [D:\build++UE5\Sync\Engine\Source\Editor\UnrealEd\Private\Cooker\PackageBuildDependencyTracker.cpp:100]
LogWindows: Error: [Callstack] 0x00007ff8190f8a06 UnrealEditor-UnrealEd.dll!UE::Core::Private::Function::TFunctionRefCaller<void (__cdecl*)(TArrayView<UObject const * const,int>),void __cdecl(TArrayView<UObject const * const,int>)>::Call() [D:\build++UE5\Sync\Engine\Source\Runtime\Core\Public\Templates\Function.h:480]
LogWindows: Error: [Callstack] 0x00007ff81c75a36a UnrealEditor-CoreUObject.dll!UE::CoreUObject::Private::OnHandleReadInternal() [D:\build++UE5\Sync\Engine\Source\Runtime\CoreUObject\Private\UObject\ObjectHandleTracking.cpp:202]
LogWindows: Error: [Callstack] 0x00007ff81c3c28df UnrealEditor-CoreUObject.dll!UE::CoreUObject::Private::ResolveObjectHandle() [D:\build++UE5\Sync\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectHandle.h:223]
LogWindows: Error: [Callstack] 0x00007ff81c76f6ba UnrealEditor-CoreUObject.dll!FLinkerPlaceholderObjectImpl::ResolvePlaceholderValues() [D:\build++UE5\Sync\Engine\Source\Runtime\CoreUObject\Private\UObject\LinkerPlaceholderBase.cpp:86]
LogWindows: Error: [Callstack] 0x00007ff81c76ec74 UnrealEditor-CoreUObject.dll!FLinkerPlaceholderBase::ResolvePlaceholderPropertyValues() [D:\build++UE5\Sync\Engine\Source\Runtime\CoreUObject\Private\UObject\LinkerPlaceholderBase.cpp:597]
LogWindows: Error: [Callstack] 0x00007ff81c76dc37 UnrealEditor-CoreUObject.dll!FLinkerPlaceholderBase::ResolveAllPlaceholderReferences() [D:\build++UE5\Sync\Engine\Source\Runtime\CoreUObject\Private\UObject\LinkerPlaceholderBase.cpp:517]
LogWindows: Error: [Callstack] 0x00007ff81c76d64f UnrealEditor-CoreUObject.dll!TLinkerImportPlaceholder::ResolveAllPlaceholderReferences() [D:\build++UE5\Sync\Engine\Source\Runtime\CoreUObject\Private\UObject\LinkerPlaceholderBase.inl:63]
LogWindows: Error: [Callstack] 0x00007ff81c7411fe UnrealEditor-CoreUObject.dll!ULinkerPlaceholderClass::BeginDestroy() [D:\build++UE5\Sync\Engine\Source\Runtime\CoreUObject\Private\UObject\LinkerPlaceholderClass.cpp:34]
LogWindows: Error: [Callstack] 0x00007ff81c743eae UnrealEditor-CoreUObject.dll!UObject::ConditionalBeginDestroy() [D:\build++UE5\Sync\Engine\Source\Runtime\CoreUObject\Private\UObject\Obj.cpp:1175]
LogWindows: Error: [Callstack] 0x00007ff81c693f3e UnrealEditor-CoreUObject.dll!UnhashUnreachableObjects() [D:\build++UE5\Sync\Engine\Source\Runtime\CoreUObject\Private\UObject\GarbageCollection.cpp:4837]
LogWindows: Error: [Callstack] 0x00007ff81c630f98 UnrealEditor-CoreUObject.dll!IncrementalPurgeGarbage() [D:\build++UE5\Sync\Engine\Source\Runtime\CoreUObject\Private\UObject\GarbageCollection.cpp:3955]
LogWindows: Error: [Callstack] 0x00007ff81c77d58a UnrealEditor-CoreUObject.dll!StaticExit() [D:\build++UE5\Sync\Engine\Source\Runtime\CoreUObject\Private\UObject\Obj.cpp:5131]
LogWindows: Error: [Callstack] 0x00007ff81c611f37 UnrealEditor-CoreUObject.dll!TBaseStaticDelegateInstance<void __cdecl(void),FDefaultDelegateUserPolicy>::ExecuteIfSafe() [D:\build++UE5\Sync\Engine\Source\Runtime\Core\Public\Delegates\DelegateInstancesImpl.h:777]
LogWindows: Error: [Callstack] 0x00007ff69f9805e4 UnrealEditor-Cmd.exe!TMulticastDelegate<void __cdecl(void),FDefaultDelegateUserPolicy>::Broadcast() [D:\build++UE5\Sync\Engine\Source\Runtime\Core\Public\Delegates\DelegateSignatureImpl.inl:956]
LogWindows: Error: [Callstack] 0x00007ff69f97fc92 UnrealEditor-Cmd.exe!FEngineLoop::AppPreExit() [D:\build++UE5\Sync\Engine\Source\Runtime\Launch\Private\LaunchEngineLoop.cpp:6757]
LogWindows: Error: [Callstack] 0x00007ff69f98bca8 UnrealEditor-Cmd.exe!FEngineLoop::Exit() [D:\build++UE5\Sync\Engine\Source\Runtime\Launch\Private\LaunchEngineLoop.cpp:5076]
LogWindows: Error: [Callstack] 0x00007ff69f98d31b UnrealEditor-Cmd.exe!GuardedMain() [D:\build++UE5\Sync\Engine\Source\Runtime\Launch\Private\Launch.cpp:202]
LogWindows: Error: [Callstack] 0x00007ff69f98d37a UnrealEditor-Cmd.exe!GuardedMainWrapper() [D:\build++UE5\Sync\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:118]
LogWindows: Error: [Callstack] 0x00007ff69f990854 UnrealEditor-Cmd.exe!LaunchWindowsStartup() [D:\build++UE5\Sync\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:258]
LogWindows: Error: [Callstack] 0x00007ff69f9a6984 UnrealEditor-Cmd.exe!WinMain() [D:\build++UE5\Sync\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:298]
LogWindows: Error: [Callstack] 0x00007ff69f9a8eb6 UnrealEditor-Cmd.exe!__scrt_common_main_seh() [D:\a_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288]
LogWindows: Error: [Callstack] 0x00007ff922447344 KERNEL32.DLL!UnknownFunction
LogWindows: Error:
LogWindows: Error: end: stack for UAT

If anyone can link me to what causes this, how to fix it, and why it only pops up sometimes when trying to build and not all the time, it would be greatly helpful

Is this a build from source Unreal ?

No it isn’t. It’s just a package using the Project Launcher. Packaging the main way also shows this error