Failed to compile default material /Engine/EngineMaterials/WorldGridMaterial.WorldGridMaterial!

The reason I encountered this issue was because I had modified the engine files. After that, I started getting exactly this error. So, I verify Unreal Engine once, and the problem was completely resolved.