Geting Error When Packaging Project

Hello everyone, when i try to compile my game it gives this error and i don’t know what to do with it. Help please
UATHelper: Cooking (Windows): LogWindows: Error: begin: stack for UAT
UATHelper: Cooking (Windows): LogWindows: Error: === Critical error: ===
UATHelper: Cooking (Windows): LogWindows: Error:
UATHelper: Cooking (Windows): LogWindows: Error: Assertion failed: Actor->GetLevel() == this [File:D:\build++UE5\Sync\Engine\Source\Runtime\Engine\Private\Level.cpp] [Line: 515]
UATHelper: Cooking (Windows): LogWindows: Error:
UATHelper: Cooking (Windows): LogWindows: Error:
UATHelper: Cooking (Windows): LogWindows: Error:
UATHelper: Cooking (Windows): LogWindows: Error: [Callstack] 0x00007ffcecfddf0b UnrealEditor-Engine.dll!UnknownFunction []
UATHelper: Cooking (Windows): LogWindows: Error: [Callstack] 0x00007ffced02de90 UnrealEditor-Engine.dll!UnknownFunction []
UATHelper: Cooking (Windows): LogWindows: Error: [Callstack] 0x00007ffd30241f21 UnrealEditor-CoreUObject.dll!UnknownFunction []
UATHelper: Cooking (Windows): LogWindows: Error: [Callstack] 0x00007ffd302397b0 UnrealEditor-CoreUObject.dll!UnknownFunction []
UATHelper: Cooking (Windows): LogWindows: Error: [Callstack] 0x00007ffd3023af29 UnrealEditor-CoreUObject.dll!UnknownFunction []
UATHelper: Cooking (Windows): LogWindows: Error: [Callstack] 0x00007ffd3024a5b9 UnrealEditor-CoreUObject.dll!UnknownFunction []
UATHelper: Cooking (Windows): LogWindows: Error: [Callstack] 0x00007ffd3024a7af UnrealEditor-CoreUObject.dll!UnknownFunction []
UATHelper: Cooking (Windows): LogWindows: Error: [Callstack] 0x00007ffd2b3a9396 UnrealEditor-UnrealEd.dll!UnknownFunction []
UATHelper: Cooking (Windows): LogWindows: Error: [Callstack] 0x00007ffd2b1e0355 UnrealEditor-UnrealEd.dll!UnknownFunction []
UATHelper: Cooking (Windows): LogWindows: Error: [Callstack] 0x00007ffd2b1cb3bd UnrealEditor-UnrealEd.dll!UnknownFunction []
UATHelper: Cooking (Windows): LogWindows: Error: [Callstack] 0x00007ffd2b1ef4e0 UnrealEditor-UnrealEd.dll!UnknownFunction []
UATHelper: Cooking (Windows): LogWindows: Error: [Callstack] 0x00007ffd2affb1bd UnrealEditor-UnrealEd.dll!UnknownFunction []
UATHelper: Cooking (Windows): LogWindows: Error: [Callstack] 0x00007ffd2b01cb5c UnrealEditor-UnrealEd.dll!UnknownFunction []
UATHelper: Cooking (Windows): LogWindows: Error: [Callstack] 0x00007ff692be948e UnrealEditor-Cmd.exe!UnknownFunction []
UATHelper: Cooking (Windows): LogWindows: Error: [Callstack] 0x00007ff692be0bbd UnrealEditor-Cmd.exe!UnknownFunction []
UATHelper: Cooking (Windows): LogWindows: Error: [Callstack] 0x00007ff692be0e8a UnrealEditor-Cmd.exe!UnknownFunction []
UATHelper: Cooking (Windows): LogWindows: Error: [Callstack] 0x00007ff692be3c4d UnrealEditor-Cmd.exe!UnknownFunction []
UATHelper: Cooking (Windows): LogWindows: Error: [Callstack] 0x00007ff692bf5564 UnrealEditor-Cmd.exe!UnknownFunction []
UATHelper: Cooking (Windows): LogWindows: Error: [Callstack] 0x00007ff692bf788a UnrealEditor-Cmd.exe!UnknownFunction []
UATHelper: Cooking (Windows): LogWindows: Error: [Callstack] 0x00007ffd62ef7614 KERNEL32.DLL!UnknownFunction []
UATHelper: Cooking (Windows): LogWindows: Error: [Callstack] 0x00007ffd640a26a1 ntdll.dll!UnknownFunction []
UATHelper: Cooking (Windows): LogWindows: Error:
UATHelper: Cooking (Windows): LogWindows: Error: end: stack for UAT
PackagingResults: Error: begin: stack for UAT
PackagingResults: Error: === Critical error: ===
PackagingResults: Error: Assertion failed: Actor->GetLevel() == this [File:D:\build++UE5\Sync\Engine\Source\Runtime\Engine\Private\Level.cpp] [Line: 515]
PackagingResults: Error: [Callstack] 0x00007ffcecfddf0b UnrealEditor-Engine.dll!UnknownFunction []
PackagingResults: Error: [Callstack] 0x00007ffced02de90 UnrealEditor-Engine.dll!UnknownFunction []
PackagingResults: Error: [Callstack] 0x00007ffd30241f21 UnrealEditor-CoreUObject.dll!UnknownFunction []
PackagingResults: Error: [Callstack] 0x00007ffd302397b0 UnrealEditor-CoreUObject.dll!UnknownFunction []
PackagingResults: Error: [Callstack] 0x00007ffd3023af29 UnrealEditor-CoreUObject.dll!UnknownFunction []
PackagingResults: Error: [Callstack] 0x00007ffd3024a5b9 UnrealEditor-CoreUObject.dll!UnknownFunction []
PackagingResults: Error: [Callstack] 0x00007ffd3024a7af UnrealEditor-CoreUObject.dll!UnknownFunction []
PackagingResults: Error: [Callstack] 0x00007ffd2b3a9396 UnrealEditor-UnrealEd.dll!UnknownFunction []
PackagingResults: Error: [Callstack] 0x00007ffd2b1e0355 UnrealEditor-UnrealEd.dll!UnknownFunction []
PackagingResults: Error: [Callstack] 0x00007ffd2b1cb3bd UnrealEditor-UnrealEd.dll!UnknownFunction []
PackagingResults: Error: [Callstack] 0x00007ffd2b1ef4e0 UnrealEditor-UnrealEd.dll!UnknownFunction []
PackagingResults: Error: [Callstack] 0x00007ffd2affb1bd UnrealEditor-UnrealEd.dll!UnknownFunction []
PackagingResults: Error: [Callstack] 0x00007ffd2b01cb5c UnrealEditor-UnrealEd.dll!UnknownFunction []
PackagingResults: Error: [Callstack] 0x00007ff692be948e UnrealEditor-Cmd.exe!UnknownFunction []
PackagingResults: Error: [Callstack] 0x00007ff692be0bbd UnrealEditor-Cmd.exe!UnknownFunction []
PackagingResults: Error: [Callstack] 0x00007ff692be0e8a UnrealEditor-Cmd.exe!UnknownFunction []
PackagingResults: Error: [Callstack] 0x00007ff692be3c4d UnrealEditor-Cmd.exe!UnknownFunction []
PackagingResults: Error: [Callstack] 0x00007ff692bf5564 UnrealEditor-Cmd.exe!UnknownFunction []
PackagingResults: Error: [Callstack] 0x00007ff692bf788a UnrealEditor-Cmd.exe!UnknownFunction []
PackagingResults: Error: [Callstack] 0x00007ffd62ef7614 KERNEL32.DLL!UnknownFunction []
PackagingResults: Error: [Callstack] 0x00007ffd640a26a1 ntdll.dll!UnknownFunction []
PackagingResults: Error: end: stack for UAT
UATHelper: Cooking (Windows): Took 614,7845281s to run UnrealEditor-Cmd.exe, ExitCode=3
UATHelper: Cooking (Windows): ERROR: Cook failed.
UATHelper: Cooking (Windows): (see C:\Users\User\AppData\Roaming\Unreal Engine\AutomationTool\Logs\T+UE+UE_5.0\Log.txt for full exception trace)
UATHelper: Cooking (Windows): AutomationTool executed for 0h 10m 15s
UATHelper: Cooking (Windows): AutomationTool exiting with ExitCode=25 (Error_UnknownCookFailure)
UATHelper: Cooking (Windows): BUILD FAILED
PackagingResults: Error: Cook failed.

i suggest try to look into your logs in Saved folder, that might give you hint what is causing crash

I am kinda new to this, so to me log file looks same to this error and i do not know what i * should look for in log file.

try to package again and then look in latest log file in your Saved/log folder, i would start from the end of that file to go up until you find some errors or warning. is this first time you tried to package your project and got error or it packaged fine before?

Thanks for advice, I will try. I had 2 separate projects of 2 gamemodes and each of them i could package without errors. But when I combined them into 1 project it dont want to compile.