UE5.03 Crashing when selecting viewmode in editor

I was working in UE5.03 today, and when I tried to select a viewmode (the 3 small dots) UE5 suddenly crashed and gave me this error code:

Assertion failed: Pair != nullptr [File:D:\build++UE5\Sync\Engine\Source\Runtime\Core\Public\Containers\Map.h] [Line: 656]

UnrealEditor_TurnkeySupport
UnrealEditor_Core
UnrealEditor_Core
UnrealEditor_Core
UnrealEditor_Core
UnrealEditor_Engine
UnrealEditor
UnrealEditor
UnrealEditor
UnrealEditor
UnrealEditor
UnrealEditor
kernel32
ntdll

I don’t know why this is happening, but I have no idea how to fix it.