Unreal Engine crashes half way through while packaging.

Here is the issue i constantly keep facing while trying to package my project for windows.

LoginId:06eb87f947fbfe3bc253a3832fe0e67f
EpicAccountId:00d0572219b84b3e94266817516e2b24

Unhandled Exception: EXCEPTION_ACCESS_VIOLATION writing address 0x0000000000000112

UnrealEditor_ShaderPreprocessor!copy_to_action_point() [D:\build++UE5\Sync\Engine\Source\Developer\ShaderPreprocessor\Private\stb_preprocess\preprocessor.c:1487]
UnrealEditor_ShaderPreprocessor!preprocess_string() [D:\build++UE5\Sync\Engine\Source\Developer\ShaderPreprocessor\Private\stb_preprocess\preprocessor.c:2321]
UnrealEditor_ShaderPreprocessor!process_include() [D:\build++UE5\Sync\Engine\Source\Developer\ShaderPreprocessor\Private\stb_preprocess\preprocessor.c:3823]
UnrealEditor_ShaderPreprocessor!process_directive() [D:\build++UE5\Sync\Engine\Source\Developer\ShaderPreprocessor\Private\stb_preprocess\preprocessor.c:4196]
UnrealEditor_ShaderPreprocessor!preprocess_string() [D:\build++UE5\Sync\Engine\Source\Developer\ShaderPreprocessor\Private\stb_preprocess\preprocessor.c:2327]
UnrealEditor_ShaderPreprocessor!process_include() [D:\build++UE5\Sync\Engine\Source\Developer\ShaderPreprocessor\Private\stb_preprocess\preprocessor.c:3823]
UnrealEditor_ShaderPreprocessor!process_directive() [D:\build++UE5\Sync\Engine\Source\Developer\ShaderPreprocessor\Private\stb_preprocess\preprocessor.c:4196]
UnrealEditor_ShaderPreprocessor!preprocess_string() [D:\build++UE5\Sync\Engine\Source\Developer\ShaderPreprocessor\Private\stb_preprocess\preprocessor.c:2327]
UnrealEditor_ShaderPreprocessor!process_include() [D:\build++UE5\Sync\Engine\Source\Developer\ShaderPreprocessor\Private\stb_preprocess\preprocessor.c:3823]
UnrealEditor_ShaderPreprocessor!process_directive() [D:\build++UE5\Sync\Engine\Source\Developer\ShaderPreprocessor\Private\stb_preprocess\preprocessor.c:4196]
UnrealEditor_ShaderPreprocessor!preprocess_string() [D:\build++UE5\Sync\Engine\Source\Developer\ShaderPreprocessor\Private\stb_preprocess\preprocessor.c:2327]
UnrealEditor_ShaderPreprocessor!preprocess_file() [D:\build++UE5\Sync\Engine\Source\Developer\ShaderPreprocessor\Private\stb_preprocess\preprocessor.c:4997]
UnrealEditor_ShaderPreprocessor!PreprocessShader() [D:\build++UE5\Sync\Engine\Source\Developer\ShaderPreprocessor\Private\ShaderPreprocessor.cpp:802]
UnrealEditor_ShaderCompilerCommon!UE::ShaderCompilerCommon::ExecuteShaderPreprocessingSteps() [D:\build++UE5\Sync\Engine\Source\Developer\ShaderCompilerCommon\Private\ShaderCompilerCommon.cpp:1753]
UnrealEditor_ShaderCompilerCommon!UE::ShaderCompilerCommon::FBaseShaderFormat::PreprocessShader() [D:\build++UE5\Sync\Engine\Source\Developer\ShaderCompilerCommon\Private\ShaderCompilerCommon.cpp:1778]
UnrealEditor_RenderCore!FInternalShaderCompilerFunctions::PreprocessShaderInternal() [D:\build++UE5\Sync\Engine\Source\Runtime\RenderCore\Private\ShaderCore.cpp:1268]
UnrealEditor_RenderCore!ConditionalPreprocessShader() [D:\build++UE5\Sync\Engine\Source\Runtime\RenderCore\Private\ShaderCore.cpp:1409]
UnrealEditor_Engine!FString::operator*'::2’::<lambda_1>::operator()() [D:\build++UE5\Sync\Engine\Source\Runtime\Engine\Private\ShaderCompiler\ShaderCompiler.cpp:1769]
UnrealEditor_Engine!FShaderCompileUtilities::ExecuteShaderCompileJob() [D:\build++UE5\Sync\Engine\Source\Runtime\Core\Public\Tasks\TaskPrivate.h:855]
UnrealEditor_Engine!UE::Tasks::Private::FTaskBase::TryExecuteTask() [D:\build++UE5\Sync\Engine\Source\Runtime\Core\Public\Tasks\TaskPrivate.h:504]
UnrealEditor_Engine!LowLevelTasks::TTaskDelegate<LowLevelTasks::FTask * __ptr64 __cdecl(bool),48>::TTaskDelegateImpl<LowLevelTasks::FTask::Init<UE::Tasks::Private::FTaskBase::Init’::2'::<lambda_1> >'::13’::<lambda_1>,0>::CallAndMove() [D:\build++UE5\Sync\Engine\Source\Runtime\Core\Public\Async\Fundamental\TaskDelegate.h:171]
UnrealEditor_Core!LowLevelTasks::FTask::ExecuteTask() [D:\build++UE5\Sync\Engine\Source\Runtime\Core\Public\Async\Fundamental\Task.h:627]
UnrealEditor_Core!LowLevelTasks::FScheduler::ExecuteTask() [D:\build++UE5\Sync\Engine\Source\Runtime\Core\Private\Async\Fundamental\Scheduler.cpp:177]
UnrealEditor_Core!LowLevelTasks::FScheduler::WorkerMain() [D:\build++UE5\Sync\Engine\Source\Runtime\Core\Private\Async\Fundamental\Scheduler.cpp:397]
UnrealEditor_Core!UE::Core::Private::Function::TFunctionRefCaller<LowLevelTasks::FScheduler::CreateWorker'::2’::<lambda_1>,void __cdecl(void)>::Call() [D:\build++UE5\Sync\Engine\Source\Runtime\Core\Public\Templates\Function.h:406]
UnrealEditor_Core!FThreadImpl::Run() [D:\build++UE5\Sync\Engine\Source\Runtime\Core\Private\HAL\Thread.cpp:69]
UnrealEditor_Core!FRunnableThreadWin::Run() [D:\build++UE5\Sync\Engine\Source\Runtime\Core\Private\Windows\WindowsRunnableThread.cpp:149]

My specs are:
CPU i9 14900k
RTX 4090
128 Gigs of RAM

Hey there @scopxtech! Welcome to the community! Looks like something is going wrong with a shader’s processing. Back up your project safely (as standard practice as this operation is supposed to be safe). Head into your project folder and delete the DerivedDataCache and any Builds folder. This will delete your cached shaders and force a rebuild of them, this won’t help the build but if the rebuild fails you may get a warning to which shader couldn’t compile. This error can often stem from trying to build over a previous build, or if some shaders are corrupted.