UE5 cannot find DefaultPawnClass in BlueprintGeneratedClass

For some reason, I can’t open Maps and Modes because the engine can’t find the DefaultPawnClass