Unreal Engine 5.0 Preview

Got the same. Uninstalled the EA version, made a copy of the project and the error was gone. No idea why.