Unreal editor does not create object and it ask me to recompile it

Successfully added class ‘MyCharacter12’, however you must recompile the ‘MyProject’ module before it will appear in the Content Browser. Failed to automatically hot reload the ‘MyProject’ module.

Would you like to open the Output Log to see more details?

and when I tried to recompile it it throws errors like

Could not find definition for module ‘MyProject’ (referenced via MyProjectEditor.Target.cs) MyProject D:\UNREAL_PROJECTS\MyProject\Intermediate\ProjectFiles\UnrealBuildTool

Error (active) E0020 identifier “FMeshDrawSingleShaderBindings” is undefined MyProject C:\Program Files\Epic Games\UE_4.22\Engine\Source\Runtime\RenderCore\Public\VertexFactory.h 626 IntelliSense

Error MSB3075 The command ““C:\Program Files\Epic Games\UE_4.22\Engine\Build\BatchFiles\Build.bat” MyProjectEditor Win64 Development -Project=“D:\UNREAL_PROJECTS\MyProject\MyProject.uproject” -WaitMutex -FromMsBuild” exited with code 5. Please verify that you have sufficient rights to run this command. MyProject C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.MakeFile.Targets