How do I fix packaging errors in UE 4.26

these are the errors I am getting could anyone please help me to understand how to fix these errors so that I can packages for shipping successfully?

Fatal error: [File:D:/Build/++UE4/Sync/Engine/Source/Runtime/Core/Private/GenericPlatform/GenericPlatformMemory.cpp] [Line: 197]
Ran out of memory allocating 268435456 bytes with alignment 0
Crash in runnable thread PoolThread 8
Crash in runnable thread TaskGraphThreadHP 6
Crash in runnable thread PoolThread 9
Crash in runnable thread TaskGraphThreadHP 10
Crash in runnable thread TaskGraphThreadHP 7
Crash in runnable thread TaskGraphThreadHP 11
Crash in runnable thread TaskGraphThreadHP 8
Crash in runnable thread TaskGraphThreadHP 9

Ran out of memory allocating 268435456? Can you check memory usage in your OS?

I checked my memory and it is fine I dont think thats the problem and clearing up my memory didnt fix the problem. Thank you