I am having the same problem and I have been trying for days to find a sollution. I read from another member that you should do exactly the opposite, meaning that you have to define manually the size of virtual memory and not let windows decide automaticaly. In my case the default setting was to automaticaly define the size so I changed it manually (I have 32GB of RAM). The problem was not solved. I tried to change it again like you suggest , but the problem is still there.
Here are the last lines of the log file.
UATHelper: Packaging (Windows (64-bit)): LogMemory: Warning: Freeing 33554432 bytes from backup pool to handle out of memory.
UATHelper: Packaging (Windows (64-bit)): LogMemory: Warning: MemoryStats:
UATHelper: Packaging (Windows (64-bit)): AvailablePhysical 15481315328
UATHelper: Packaging (Windows (64-bit)): AvailableVirtual 140730124279808
UATHelper: Packaging (Windows (64-bit)): UsedPhysical 2679300096
UATHelper: Packaging (Windows (64-bit)): PeakUsedPhysical 2679304192
UATHelper: Packaging (Windows (64-bit)): UsedVirtual 2856173568
UATHelper: Packaging (Windows (64-bit)): PeakUsedVirtual 3797598208
UATHelper: Packaging (Windows (64-bit)): LogWindows: Error: === Critical error: ===
UATHelper: Packaging (Windows (64-bit)): LogWindows: Error:
UATHelper: Packaging (Windows (64-bit)): LogWindows: Error: Fatal error: [File:D:/Build/++UE4/Sync/Engine/Source/Runtime/Core/Private/GenericPlatform/GenericPlatformMemory.cpp] [Line: 186]
UATHelper: Packaging (Windows (64-bit)): LogWindows: Error: Ran out of memory allocating 18446744072014652240 bytes with alignment 0
UATHelper: Packaging (Windows (64-bit)): LogWindows: Error: [Callstack] 0x00007ffdfd841458 UnrealPak-Core.dll!FGenericPlatformMemory::OnOutOfMemory() ]
UATHelper: Packaging (Windows (64-bit)): LogWindows: Error: [Callstack] 0x00007ffdfd8baa6d UnrealPak-Core.dll!FMallocTBB::Malloc() ]
UATHelper: Packaging (Windows (64-bit)): LogWindows: Error: [Callstack] 0x00007ffe08627115 UnrealPak-PakFileUtilities.dll!FMemoryCompressor::FMemoryCompressor() ]
UATHelper: Packaging (Windows (64-bit)): LogWindows: Error: [Callstack] 0x00007ffe08631718 UnrealPak-PakFileUtilities.dll!FCompressedFileBuffer::CompressFileToWorkingBuffer() ]
UATHelper: Packaging (Windows (64-bit)): LogWindows: Error: [Callstack] 0x00007ffe08631375 UnrealPak-PakFileUtilities.dll!CreatePakFile'::
2’::FAsyncCompressor::Compress() ]
UATHelper: Packaging (Windows (64-bit)): LogWindows: Error: [Callstack] 0x00007ffe08632e60 UnrealPak-PakFileUtilities.dll!CreatePakFile() ]
UATHelper: Packaging (Windows (64-bit)): LogWindows: Error: [Callstack] 0x00007ffe0863e06e UnrealPak-PakFileUtilities.dll!ExecuteUnrealPak() ]
UATHelper: Packaging (Windows (64-bit)): LogWindows: Error: [Callstack] 0x00007ff6f013a5c7 UnrealPak.exe!wmain() ]
UATHelper: Packaging (Windows (64-bit)): LogWindows: Error: [Callstack] 0x00007ff6f013b338 UnrealPak.exe!__scrt_common_main_seh() ]
UATHelper: Packaging (Windows (64-bit)): LogWindows: Error: [Callstack] 0x00007ffe5a377034 KERNEL32.DLL!UnknownFunction ]
UATHelper: Packaging (Windows (64-bit)): LogWindows: Error: [Callstack] 0x00007ffe5b0fcec1 ntdll.dll!UnknownFunction ]
UATHelper: Packaging (Windows (64-bit)): LogWindows: Error:
UATHelper: Packaging (Windows (64-bit)): LogWindows: Error:
UATHelper: Packaging (Windows (64-bit)): LogWindows: Error:
UATHelper: Packaging (Windows (64-bit)): LogWindows: Error:
UATHelper: Packaging (Windows (64-bit)): UnrealPak terminated with exit code 3
UATHelper: Packaging (Windows (64-bit)): ERROR: UnrealPak failed
UATHelper: Packaging (Windows (64-bit)): (see C:\Users\User\AppData\Roaming\Unreal Engine\AutomationTool\Logs\E+UE_4.25\Log.txt for full exception trace)
UATHelper: Packaging (Windows (64-bit)): AutomationTool exiting with ExitCode=1 (Error_Unknown)
UATHelper: Packaging (Windows (64-bit)): BUILD FAILED
PackagingResults: Error: Unknown Error
LogSlate: Took 0.000138 seconds to synchronously load lazily loaded font ‘…/…/…/Engine/Content/Slate/Fonts/DroidSansMono.ttf’ (77K)
Does it matter that the project is in C: and I am packaging in the E: drive?
Also, my free space in C: is kinda limited (about 40GB). Does this matter?
Any help would be highly appreciated.