Packaging failed for windows build

Hi,

I am creating a VR project for an office building in Unreal Engine 5.4.3. The project runs perfectly in preview with all the bueprints compiled as well, but when I try to package for windows, The build is failing with a lot of errors.

Here is what the output log says:

UATHelper: Packaging (Windows): LogShaderCompilers: Display: Worker (12/13) finished batch of 10 jobs in 89.918s, TBasePassPSFSelfShadowedTranslucencyPolicySkylight [WorkerTime=31.337s], TBasePassPSFNoLightMapPolicySkylight [WorkerTime=14.543s], FLumenCardPS [WorkerTime=11.682s], TBasePassPSFSelfShadowedTranslucencyPolicySkylight [WorkerTime=8.721s], TBasePassPSFSelfShadowedTranslucencyPolicy [WorkerTime=6.827s], TBasePassPSFNoLightMapPolicySkylight [WorkerTime=6.713s], FLumenTranslucencyRadianceCacheMarkVS [WorkerTime=5.153s], TBasePassPSFNoLightMapPolicySkylight [WorkerTime=2.356s], F
LumenCardPS [WorkerTime=1.130s], FLumenCardPS [WorkerTime=1.066s]
UATHelper: Packaging (Windows): LogThreadingWindows: Error: Runnable thread Background Worker #13 crashed.
PackagingResults: Error: Runnable thread Background Worker #13 crashed.
UATHelper: Packaging (Windows): LogWindows: Error: begin: stack for UAT
UATHelper: Packaging (Windows): LogWindows: Error: === Critical error: ===
UATHelper: Packaging (Windows): LogWindows: Error:
UATHelper: Packaging (Windows): LogWindows: Error: Fatal error!
UATHelper: Packaging (Windows): LogWindows: Error:
UATHelper: Packaging (Windows): LogWindows: Error: Unhandled Exception: EXCEPTION_ACCESS_VIOLATION reading address 0xffffffffffffffff
UATHelper: Packaging (Windows): LogWindows: Error:
UATHelper: Packaging (Windows): LogWindows: Error: [Callstack] 0x00007ffd7da109a8 UnrealEditor-Engine.dll!UnknownFunction
UATHelper: Packaging (Windows): LogWindows: Error: [Callstack] 0x00007ffd7da11418 UnrealEditor-Engine.dll!UnknownFunction
UATHelper: Packaging (Windows): LogWindows: Error: [Callstack] 0x00007ffd7edde272 UnrealEditor-Engine.dll!UnknownFunction
UATHelper: Packaging (Windows): LogWindows: Error: [Callstack] 0x00007ffd7eddebce UnrealEditor-Engine.dll!UnknownFunction
UATHelper: Packaging (Windows): LogWindows: Error: [Callstack] 0x00007ffd7edf16ae UnrealEditor-Engine.dll!UnknownFunction
UATHelper: Packaging (Windows): LogWindows: Error: [Callstack] 0x00007ffd7edef07c UnrealEditor-Engine.dll!UnknownFunction
UATHelper: Packaging (Windows): LogWindows: Error: [Callstack] 0x00007ffd7cf52896 UnrealEditor-Engine.dll!UnknownFunction
UATHelper: Packaging (Windows): LogWindows: Error: [Callstack] 0x00007ffd7cf5237e UnrealEditor-Engine.dll!UnknownFunction
UATHelper: Packaging (Windows): LogWindows: Error: [Callstack] 0x00007ffd7d252014 UnrealEditor-Engine.dll!UnknownFunction
UATHelper: Packaging (Windows): LogWindows: Error: [Callstack] 0x00007ff7ff249edf UnrealEditor-Cmd.exe!UnknownFunction
UATHelper: Packaging (Windows): LogWindows: Error: [Callstack] 0x00007ff7ff251d53 UnrealEditor-Cmd.exe!UnknownFunction
UATHelper: Packaging (Windows): LogWindows: Error: [Callstack] 0x00007ffd814d24c5 UnrealEditor-Core.dll!UnknownFunction
UATHelper: Packaging (Windows): LogWindows: Error: [Callstack] 0x00007ffd814d21ff UnrealEditor-Core.dll!UnknownFunction
UATHelper: Packaging (Windows): LogWindows: Error: [Callstack] 0x00007ffd814fa155 UnrealEditor-Core.dll!UnknownFunction
UATHelper: Packaging (Windows): LogWindows: Error: [Callstack] 0x00007ffd814c23d0 UnrealEditor-Core.dll!UnknownFunction
UATHelper: Packaging (Windows): LogWindows: Error: [Callstack] 0x00007ffd816c7c93 UnrealEditor-Core.dll!UnknownFunction
PackagingResults: Error: begin: stack for UAT
PackagingResults: Error: === Critical error: ===
PackagingResults: Error: Fatal error!
UATHelper: Packaging (Windows): LogWindows: Error: [Callstack] 0x00007ffd81b2c93d UnrealEditor-Core.dll!UnknownFunction
PackagingResults: Error: Unhandled Exception: EXCEPTION_ACCESS_VIOLATION reading address 0xffffffffffffffff
UATHelper: Packaging (Windows): LogWindows: Error: [Callstack] 0x00007ffd81b202b7 UnrealEditor-Core.dll!UnknownFunction
PackagingResults: Error: [Callstack] 0x00007ffd7da109a8 UnrealEditor-Engine.dll!UnknownFunction
UATHelper: Packaging (Windows): LogWindows: Error: [Callstack] 0x00007ffe3132257d KERNEL32.DLL!UnknownFunction
PackagingResults: Error: [Callstack] 0x00007ffd7da11418 UnrealEditor-Engine.dll!UnknownFunction
UATHelper: Packaging (Windows): LogWindows: Error:
UATHelper: Packaging (Windows): LogWindows: Error: Crash in runnable thread Background Worker #13
UATHelper: Packaging (Windows): LogWindows: Error: end: stack for UAT
PackagingResults: Error: [Callstack] 0x00007ffd7edde272 UnrealEditor-Engine.dll!UnknownFunction
PackagingResults: Error: [Callstack] 0x00007ffd7eddebce UnrealEditor-Engine.dll!UnknownFunction
PackagingResults: Error: [Callstack] 0x00007ffd7edf16ae UnrealEditor-Engine.dll!UnknownFunction
PackagingResults: Error: [Callstack] 0x00007ffd7edef07c UnrealEditor-Engine.dll!UnknownFunction
PackagingResults: Error: [Callstack] 0x00007ffd7cf52896 UnrealEditor-Engine.dll!UnknownFunction
PackagingResults: Error: [Callstack] 0x00007ffd7cf5237e UnrealEditor-Engine.dll!UnknownFunction
PackagingResults: Error: [Callstack] 0x00007ffd7d252014 UnrealEditor-Engine.dll!UnknownFunction
PackagingResults: Error: [Callstack] 0x00007ff7ff249edf UnrealEditor-Cmd.exe!UnknownFunction
PackagingResults: Error: [Callstack] 0x00007ff7ff251d53 UnrealEditor-Cmd.exe!UnknownFunction
PackagingResults: Error: [Callstack] 0x00007ffd814d24c5 UnrealEditor-Core.dll!UnknownFunction
PackagingResults: Error: [Callstack] 0x00007ffd814d21ff UnrealEditor-Core.dll!UnknownFunction
PackagingResults: Error: [Callstack] 0x00007ffd814fa155 UnrealEditor-Core.dll!UnknownFunction
PackagingResults: Error: [Callstack] 0x00007ffd814c23d0 UnrealEditor-Core.dll!UnknownFunction
PackagingResults: Error: [Callstack] 0x00007ffd816c7c93 UnrealEditor-Core.dll!UnknownFunction
PackagingResults: Error: [Callstack] 0x00007ffd81b2c93d UnrealEditor-Core.dll!UnknownFunction
PackagingResults: Error: [Callstack] 0x00007ffd81b202b7 UnrealEditor-Core.dll!UnknownFunction
PackagingResults: Error: [Callstack] 0x00007ffe3132257d KERNEL32.DLL!UnknownFunction
PackagingResults: Error: Crash in runnable thread Background Worker #13
PackagingResults: Error: end: stack for UAT
UATHelper: Packaging (Windows): Took 799.53s to run UnrealEditor-Cmd.exe, ExitCode=3
UATHelper: Packaging (Windows): Cook failed.
UATHelper: Packaging (Windows): (see C:\Users\sensv\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_5.4\Log.txt for full exception trace)
UATHelper: Packaging (Windows): AutomationTool executed for 0h 14m 0s
UATHelper: Packaging (Windows): AutomationTool exiting with ExitCode=25 (Error_UnknownCookFailure)
UATHelper: Packaging (Windows): BUILD FAILED
LogConfig: Display: Audio Stream Cache “Max Cache Size KB” set to 0 by config: “…/…/…/…/…/…/Projects/VR_OFFICE/Unreal/VR_Office_Fin/Config/Engine.ini”. Default value of 65536 KB will be used. You can update Project Settings here: Project Settings->Platforms->Windows->Audio->Cook Overrides->Stream Caching->Max Cache Size (KB)
LogAudioDerivedData: Display: Building compressed audio format BINKA hash BINKA_SCVER_5028_R4DV_false_SR0_0.000000_SR1_0.000000_SR2_0.000000_SR3_0.000000_SR4_0.000000_QMOD_0.000000_CQLT_-1_ASTH_0.000000_INLC_false_LCK1_0.000000_CSZE_65536_LCF_false_ZCS_256_MCSO_0_END wave CompileFailed…
LogAudioDerivedData: Display: Compression Quality for SoundWave /Engine/EditorSounds/Notifications/CompileFailed.CompileFailed will be modified from 80 to 1, with modifier [0.00]
PackagingResults: Error: Unknown Cook Failure

Can anyone please help me understand where the problem is happening?

I finally got around this annoying issue and could get my project packaged!

I just used thr project launcher to package, instead of packaging directly for Windows.

I followed this tutorial: https://youtu.be/XAtOXmyqq18?si=WwTH3r2kThGsT8iR

I hope this helps anyone else with similar issues.