The thing that worked for me was deleting the material that’s causing the trouble on the disk where Unreal is installed
(\Engine\Source\Runtime\Engine\Private\Materials\MaterialShared.cpp),
and then launching the epic game and verifying the version. Now it works normally.