[UE5] Editor crashes 95% of the time upon startup

When launching my project in the editor, it crashes almost every single time… And then randomly, by chance, it will work on one launch, then proceed to crashing for the next 20-40 startups before once again allowing 1 successful launch. I only crash in 5.0, not 4.27 nor 4.26 nor 4.25. None of my code nor assets have been changed between updates. I’ve tried using both the official editor build as well as building from source.

This stacktrace seems to exist no where else on the internet, and I am unable to reproduce it in a new C++ project, even after copying my code over… so I presume there’s something broken in the assets, but I have thousands of them and it will take quite a while to re-import them all (doing it anyway while I wait).

Fatal error: [File:E:\UE5\Engine\Source\Runtime\RenderCore\Private\RenderingThread.cpp] [Line: 934] 
Rendering thread exception:
Fatal error!

Unhandled Exception: EXCEPTION_ACCESS_VIOLATION reading address 0xffffffffffffffff

0x00007ffdea032376 UnrealEditor-Engine.dll!FSimpleElementPS::SetParameters() [E:\UE5\Engine\Source\Runtime\Engine\Private\SimpleElementShaders.cpp:80]
0x00007ffdea031eeb UnrealEditor-Engine.dll!FSimpleElementGammaBasePS::SetParameters() [E:\UE5\Engine\Source\Runtime\Engine\Private\SimpleElementShaders.cpp:112]
0x00007ffde8c02aab UnrealEditor-Engine.dll!FBatchedElements::PrepareShaders() [E:\UE5\Engine\Source\Runtime\Engine\Private\BatchedElements.cpp:711]
0x00007ffde8bec43f UnrealEditor-Engine.dll!FBatchedElements::Draw() [E:\UE5\Engine\Source\Runtime\Engine\Private\BatchedElements.cpp:1147]
0x00007ffdea42760b UnrealEditor-Engine.dll!<lambda_317675ff1a65c8b84d0d05bc99a11f11>::operator()() [E:\UE5\Engine\Source\Runtime\Engine\Private\UserInterface\Canvas.cpp:446]
0x00007ffdea449d83 UnrealEditor-Engine.dll!TRDGLambdaPass<FRenderTargetParameters,<lambda_7f5a72df9804351f9104bf2a271abe26> >::Execute() [E:\UE5\Engine\Source\Runtime\RenderCore\Public\RenderGraphPass.h:564]
0x00007ffde8099ca4 UnrealEditor-RenderCore.dll!FRDGBuilder::ExecutePass() [E:\UE5\Engine\Source\Runtime\RenderCore\Private\RenderGraphBuilder.cpp:2447]
0x00007ffde8093cb9 UnrealEditor-RenderCore.dll!FRDGBuilder::Execute() [E:\UE5\Engine\Source\Runtime\RenderCore\Private\RenderGraphBuilder.cpp:1635]
0x00007ffdea4596a0 UnrealEditor-Engine.dll!FCanvas::Flush_RenderThread() [E:\UE5\Engine\Source\Runtime\Engine\Private\UserInterface\Canvas.cpp:746]
0x00007ffdea111ecf UnrealEditor-Engine.dll!FDebugCanvasDrawer::DrawRenderThread() [E:\UE5\Engine\Source\Runtime\Engine\Private\Slate\DebugCanvas.cpp:305]
0x00007ffdd592fc69 UnrealEditor-SlateRHIRenderer.dll!FSlateRHIRenderingPolicy::DrawElements() [E:\UE5\Engine\Source\Runtime\SlateRHIRenderer\Private\SlateRHIRenderingPolicy.cpp:1261]
0x00007ffdd59343d5 UnrealEditor-SlateRHIRenderer.dll!FSlateRHIRenderer::DrawWindow_RenderThread() [E:\UE5\Engine\Source\Runtime\SlateRHIRenderer\Private\SlateRHIRenderer.cpp:895]
0x00007ffdd5929e87 UnrealEditor-SlateRHIRenderer.dll!TEnqueueUniqueRenderCommandType<`FSlateRHIRenderer::DrawWindows_Private'::`39'::SlateDrawWindowsCommandName,<lambda_f9feabdceba9d88a5c7b2ca3d59100d9> >::DoTask() [E:\UE5\Engine\Source\Runtime\RenderCore\Public\RenderingThread.h:193]
0x00007ffdd593ef4a UnrealEditor-SlateRHIRenderer.dll!TGraphTask<TEnqueueUniqueRenderCommandType<`FSlateRHIRenderer::DrawWindows_Private'::`39'::SlateDrawWindowsCommandName,<lambda_f9feabdceba9d88a5c7b2ca3d59100d9> > >::ExecuteTask() [E:\UE5\Engine\Source\Runtime\Core\Public\Async\TaskGraphInterfaces.h:975]
0x00007ffded023bdd UnrealEditor-Core.dll!FNamedTaskThread::ProcessTasksNamedThread() [E:\UE5\Engine\Source\Runtime\Core\Private\Async\TaskGraph.cpp:753]
0x00007ffded02407e UnrealEditor-Core.dll!FNamedTaskThread::ProcessTasksUntilQuit() [E:\UE5\Engine\Source\Runtime\Core\Private\Async\TaskGraph.cpp:642]
0x00007ffded024421 UnrealEditor-Core.dll!FTaskGraphCompatibilityImplementation::ProcessThreadUntilRequestReturn() [E:\UE5\Engine\Source\Runtime\Core\Private\Async\TaskGraph.cpp:2115]
0x00007ffde81667fb UnrealEditor-RenderCore.dll!RenderingThreadMain() [E:\UE5\Engine\Source\Runtime\RenderCore\Private\RenderingThread.cpp:380]
0x00007ffde816a1e8 UnrealEditor-RenderCore.dll!FRenderingThread::Run() [E:\UE5\Engine\Source\Runtime\RenderCore\Private\RenderingThread.cpp:527]
0x00007ffded6f885b UnrealEditor-Core.dll!FRunnableThreadWin::Run() [E:\UE5\Engine\Source\Runtime\Core\Private\Windows\WindowsRunnableThread.cpp:146]
0x00007ffded6f1860 UnrealEditor-Core.dll!FRunnableThreadWin::GuardedRun() [E:\UE5\Engine\Source\Runtime\Core\Private\Windows\WindowsRunnableThread.cpp:76]
0x00007ffe89bd7034 KERNEL32.DLL!UnknownFunction []
0x00007ffe8ac02651 ntdll.dll!UnknownFunction []

When it attempts to open the project in the editor, I will be able to see the startup scene with all the objects that belong to it as if it were successful. I know the editor will crash if the skybox is black/default for longer than 1 seconds. If the skybox changes to the actual skybox of the level, then I know it won’t crash.

This seems to be some kind of crash related to slate and shaders but even after trying to step through with a debugger, I can not figure out what it could be.