Unreal Crashing when building all levels

I keep having this crash when trying to build all levels.

Assertion failed: StreamingTextures.Num() == StreamingTextureGuids.Num() [File:D:\build++UE5\Sync\Engine\Source\Runtime\Engine\Private\Level.cpp] [Line: 1912]

UnrealEditor_Engine
UnrealEditor_Engine
UnrealEditor_Engine
UnrealEditor_Engine
UnrealEditor_Engine
UnrealEditor_Engine
UnrealEditor_UnrealEd
UnrealEditor_UnrealEd
UnrealEditor_UnrealEd
UnrealEditor_LevelEditor
UnrealEditor_LevelEditor
UnrealEditor_Slate
UnrealEditor_Slate
UnrealEditor_Slate
UnrealEditor_Slate
UnrealEditor_Slate
UnrealEditor_Slate
UnrealEditor_Slate
UnrealEditor_Slate
UnrealEditor_Slate
UnrealEditor_Slate
UnrealEditor_Slate
UnrealEditor_Slate
UnrealEditor_ApplicationCore
UnrealEditor_ApplicationCore
UnrealEditor_ApplicationCore
UnrealEditor_ApplicationCore
user32
user32
UnrealEditor_ApplicationCore
UnrealEditor
UnrealEditor
UnrealEditor
UnrealEditor
UnrealEditor
UnrealEditor
kernel32
ntdll

Any idea whats causing it?

looks like its some kind of texture streaminfg or virtual texture error
sometimes migrating all the levels (just select all levels that are in the project and only the levels then migrate)
even if a texture is not actually on a level it gets compiled if its in the project, so sometimes that moves over only what’s actually in a level and can unhump it

Check this thread:

there is a setting to “package engine and plugin content”
that content is inside the engine under private