Unreal Editor crashing on startup on 5.4.1

Please select what you are reporting on:

Creative

What Type of Bug are you experiencing?

Stability

Summary

I am new to UE. I am trying to open a Third Person Template project but it just keeps crashing after it shows ‘Compiling Shaders’ on the splash screen. I even tried using a blank project, but the same happens. I tried looking up on the forums, and a similar problem was happening but it was said to be fixed on UE5.4. The earlier solution of deleting the config, saved and intermediate folders works, but I lose the template. Please Help.
System Specs are:
Ryzen 5 5600H
Nvidia RTX 3050
8gb RAM
I have the latest Nvidia Studio drivers and AMD drivers.

Steps to Reproduce

Just open any new project(Blank or template)

Expected Result

A project should open

Observed Result

It crashes with the following message:

LoginId:713749ef4839a8dcca2b00bbc8d89b92
EpicAccountId:ed7b205967264d0f962790f60e4e2461

Assertion failed: uint32(Allocation.BaseIndex + Allocation.Size) <= StructMetaData.GetSize() [File:D:\build++UE5\Sync\Engine\Source\Runtime\RenderCore\Private\ShaderParameterStruct.cpp] [Line: 276]

UnrealEditor_RenderCore
UnrealEditor_Renderer
UnrealEditor_Engine
UnrealEditor_Engine
UnrealEditor_Engine
UnrealEditor_Engine
UnrealEditor_Engine
UnrealEditor_Engine
UnrealEditor_Engine
UnrealEditor_CoreUObject
UnrealEditor_CoreUObject
UnrealEditor_CoreUObject
UnrealEditor_CoreUObject
UnrealEditor_CoreUObject
UnrealEditor_CoreUObject
UnrealEditor_CoreUObject
UnrealEditor_CoreUObject
UnrealEditor_CoreUObject
UnrealEditor_Engine
UnrealEditor_Engine
UnrealEditor_Engine
UnrealEditor_CoreUObject
UnrealEditor_CoreUObject
UnrealEditor_CoreUObject
UnrealEditor_CoreUObject
UnrealEditor_Engine
UnrealEditor_CoreUObject
UnrealEditor_CoreUObject
UnrealEditor_CoreUObject
UnrealEditor_CoreUObject
UnrealEditor
UnrealEditor
UnrealEditor
UnrealEditor
UnrealEditor
UnrealEditor
kernel32
ntdll

Platform(s)

Windows 11

I also have the same issue
my pc specs : i7-13700F, NVidia RTX 4070 TI, Windows 11

I have found an workaround by going to the following file : Config > DefaultEngine.ini and change this line DefaultGraphicsRHI=DefaultGraphicsRHI_DX12 with DefaultGraphicsRHI=DefaultGraphicsRHI_DX11

this will use DirectX11 instead of 12.
the better option might also be to use vulkan : DefaultGraphicsRHI=DefaultGraphicsRHI_Vulkan

I’m also getting this issue.

I tried reinstalling the engine and also reinstalling graphics drivers with DDU. Nothing has worked.

The only way to open UE5.4 is by overriding settings and launching without SM6 - which makes 5.4 not worth using.