UE5 package occurs error intermittently

My project just upgraded from ue4.27 to ue5.0
recent build packaging has often been wrong in both versions
I’ve tried cleaning up the build or removing the bugging plugin, but the problem persists
And this problem does not always appear, without modifying the code, every once in a while, the build with the package will return to normal, but soon the error will reappear, very troublesome
I really don’t know what the reason is
Please ask anyone who has encountered the same similar problem, give me a little advice
thank you

12:25:29 LogInit: Display:
12:25:29 LogInit: Display: Success - 0 error(s), 3112 warning(s)
12:25:29 LogInit: Display:
12:25:29 
12:25:29 Execution of commandlet took:  2.19 seconds
12:25:31 LogShaderCompilers: Display: ================================================
12:25:31 LogShaderCompilers: Display: === FShaderJobCache stats ===
12:25:31 LogShaderCompilers: Display: Total job queries 0, among them cache hits 0 (0.00%)
12:25:31 LogShaderCompilers: Display: Tracking 0 distinct input hashes that result in 0 distinct outputs (0.00%)
12:25:31 LogShaderCompilers: Display: RAM used: 0.00 MB (0.00 GB) of 1638.40 MB (1.60 GB) budget. Usage: 0.00%
12:25:31 LogShaderCompilers: Display: === Shader Compilation stats ===
12:25:31 LogShaderCompilers: Display: Shaders Compiled: 0
12:25:31 LogShaderCompilers: Display: Jobs assigned 0, completed 0 (0.00%)
12:25:31 LogShaderCompilers: Display: Time at least one job was in flight (either pending or executed): 0.00 s
12:25:31 LogShaderCompilers: Display: ================================================
12:25:31 LogShaderCompilers: Display: Shaders left to compile 0
12:25:31 LogWindows: Error: begin: stack for UAT
12:25:31 LogWindows: Error: === Critical error: ===
12:25:31 LogWindows: Error:
12:25:31 LogWindows: Error: Fatal error!
12:25:31 LogWindows: Error:
12:25:31 LogWindows: Error: Unhandled Exception: EXCEPTION_ACCESS_VIOLATION 0x000009fe294e2300
12:25:31 LogWindows: Error:
12:25:31 LogWindows: Error: [Callstack] 0x000009fe294e2300 UnknownFunction []
12:25:31 LogWindows: Error: [Callstack] 0x00007ff9d57b8a8a UnrealEditor-ApexDestructionEditor.dll!UnknownFunction []
12:25:31 LogWindows: Error: [Callstack] 0x00007ff9d57f0169 UnrealEditor-ApexDestructionEditor.dll!UnknownFunction []
12:25:31 LogWindows: Error: [Callstack] 0x00007ff9fe74291a UnrealEditor-Core.dll!UnknownFunction []
12:25:31 LogWindows: Error: [Callstack] 0x00007ff70708020a UnrealEditor-Cmd.exe!UnknownFunction []
12:25:31 LogWindows: Error: [Callstack] 0x00007ff707080e2b UnrealEditor-Cmd.exe!UnknownFunction []
12:25:31 LogWindows: Error: [Callstack] 0x00007ff707080e8a UnrealEditor-Cmd.exe!UnknownFunction []
12:25:31 LogWindows: Error: [Callstack] 0x00007ff707083c4d UnrealEditor-Cmd.exe!UnknownFunction []
12:25:31 LogWindows: Error: [Callstack] 0x00007ff707095534 UnrealEditor-Cmd.exe!UnknownFunction []
12:25:31 LogWindows: Error: [Callstack] 0x00007ff707097842 UnrealEditor-Cmd.exe!UnknownFunction []
12:25:31 LogWindows: Error: [Callstack] 0x00007ffa5b527034 KERNEL32.DLL!UnknownFunction []
12:25:31 LogWindows: Error: [Callstack] 0x00007ffa5cde2651 ntdll.dll!UnknownFunction []
12:25:31 LogWindows: Error:
12:25:31 LogWindows: Error: end: stack for UAT
12:25:38 Took 21.0864142s to run UnrealEditor-Cmd.exe, ExitCode=3
12:25:38 ERROR: Cook failed.
12:25:38        (see C:\Users\Administrator.DESKTOP-54F8M3E\AppData\Roaming\Unreal Engine\AutomationTool\Logs\F+UE_5.0\Log.txt for full exception trace)
12:25:38 AutomationTool executed for 0h 0m 25s
12:25:38 AutomationTool exiting with ExitCode=25 (Error_UnknownCookFailure)
12:25:38 BUILD FAILED
LogModuleManager: Shutting down and abandoning module FacialAnimation (346)
LogModuleManager: Shutting down and abandoning module DataValidation (344)
LogModuleManager: Shutting down and abandoning module ApexDestructionEditor (342)
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 0x000009fe294e2300
LogWindows: Error: 
LogWindows: Error: [Callstack] 0x000009fe294e2300 UnknownFunction []
LogWindows: Error: [Callstack] 0x00007ff9d57b8a8a UnrealEditor-ApexDestructionEditor.dll!UnknownFunction []
LogWindows: Error: [Callstack] 0x00007ff9d57f0169 UnrealEditor-ApexDestructionEditor.dll!UnknownFunction []
LogWindows: Error: [Callstack] 0x00007ff9fe74291a UnrealEditor-Core.dll!UnknownFunction []
LogWindows: Error: [Callstack] 0x00007ff70708020a UnrealEditor-Cmd.exe!UnknownFunction []
LogWindows: Error: [Callstack] 0x00007ff707080e2b UnrealEditor-Cmd.exe!UnknownFunction []
LogWindows: Error: [Callstack] 0x00007ff707080e8a UnrealEditor-Cmd.exe!UnknownFunction []
LogWindows: Error: [Callstack] 0x00007ff707083c4d UnrealEditor-Cmd.exe!UnknownFunction []
LogWindows: Error: [Callstack] 0x00007ff707095534 UnrealEditor-Cmd.exe!UnknownFunction []
LogWindows: Error: [Callstack] 0x00007ff707097842 UnrealEditor-Cmd.exe!UnknownFunction []
LogWindows: Error: [Callstack] 0x00007ffa5b527034 KERNEL32.DLL!UnknownFunction []
LogWindows: Error: [Callstack] 0x00007ffa5cde2651 ntdll.dll!UnknownFunction []
LogWindows: Error: 
LogWindows: Error: end: stack for UAT
LogWindows: FPlatformMisc::RequestExit(1)
LogWindows: FPlatformMisc::RequestExitWithStatus(1, 3)
LogCore: Engine exit requested (reason: Win RequestExit; note: exit was already requested)
Log file closed, 04/21/22 12:27:54

It looks like you’ve got Apex Destruction in your project, you’ll need to convert that to Chaos Destruction as Apex has been depreciated in UE5: