UE 5 project crashed

Having issue open my file, after I changed Platforms/windows/D3D12 Targeted Shader Formats to SM6, then start crashing.

LoginId:43cf136c45343fb7b5a2fbafac62e558
EpicAccountId:b3280bfb63594ee0ac6bd7e04c0b0397

Assertion failed: !HasAnyFlags(RF_NeedPostLoad) [File:D:\build++UE5\Sync\Engine\Source\Runtime\Engine\Private\Materials\MaterialInstance.cpp] [Line: 2444]

UnrealEditor_Engine
UnrealEditor_Engine
UnrealEditor_Engine
UnrealEditor_Engine
UnrealEditor_Engine
UnrealEditor_Engine
UnrealEditor_Engine
UnrealEditor_Engine
UnrealEditor_Engine
UnrealEditor_Engine
UnrealEditor_Landscape
UnrealEditor_Landscape
UnrealEditor_Landscape
UnrealEditor_CoreUObject
UnrealEditor_CoreUObject
UnrealEditor_CoreUObject
UnrealEditor_Engine
UnrealEditor_Engine
UnrealEditor_CoreUObject
UnrealEditor_Engine
UnrealEditor_CoreUObject
UnrealEditor_CoreUObject
UnrealEditor_CoreUObject
UnrealEditor_CoreUObject
UnrealEditor_CoreUObject
UnrealEditor_CoreUObject
UnrealEditor_UnrealEd
UnrealEditor_UnrealEd
UnrealEditor_UnrealEd
UnrealEditor_Core
UnrealEditor_Engine
UnrealEditor_UnrealEd
UnrealEditor_UnrealEd
UnrealEditor_UnrealEd
UnrealEditor_UnrealEd
UnrealEditor_UnrealEd
UnrealEditor
UnrealEditor
UnrealEditor
UnrealEditor
UnrealEditor
kernel32
ntdll

I’m getting the exact same error message. I was working on editing a blueprint for an enemy in my level, and the editor unexpectedly shut down. I can open my project just fine, but the editor crashes every time I open the problem level.

By reading the error logs it looks like it might have to do with the landscape/materials in the level. Does anyone have any ideas on how to fix this?

After some debugging, it turns out the issue was caused by enabling nanite on the landscape. I was able to resolve the issue by disabling nanite in my project settings.

Hopefully this helps some people out!