Editor crashes after redirecting enum in plugin

After renaming enum in Rider and generating redirection editor crashes on launch until redirection is removed. I need this redirection because otherwise a lot of blueprints will brake.

Here is crash log:

Assertion failed: !GeneratedWrappedTypes.Contains(TypeRegistryName) [File:D:\build\++UE5\Sync\Engine\Plugins\Experimental\PythonScriptPlugin\Source\PythonScriptPlugin\Private\PyWrapperTypeRegistry.cpp] [Line: 1908]

UnrealEditor_PythonScriptPlugin
UnrealEditor_PythonScriptPlugin
UnrealEditor_PythonScriptPlugin
UnrealEditor_PythonScriptPlugin
UnrealEditor_Core
UnrealEditor_Core
UnrealEditor_Projects
UnrealEditor_Projects
UnrealEditor_Projects
UnrealEditor
UnrealEditor
UnrealEditor
UnrealEditor
UnrealEditor
UnrealEditor
UnrealEditor
kernel32
ntdll

Here is redirection file (DefaultALSV4_CPP.ini):

[CoreRedirects]
+EnumRedirects=(OldName="/Script/ALSV4_CPP.EALSOverlayState",NewName="/Script/ALSV4_CPP.ECharacterAnimationType")

Is there something wrong with this redirection? Maybe Rider is generating incorrect redirections in UE5?

This looks similar to Python Plugin assertion failed

For me, a similar issue with PythonScriptPlugin could also have been related to a redirect which I then removed from the .ini file.
I also deleted the Intermediate folder > Generate Visual Studio files > Build in Rider (which took a while).
After that, the editor starts without a problem.