I think this error is because compiling with VS2017 or one module not referenced Granite thirparty
Try change this:
In file \Engine\Source\ThirdParty\GraniteSDK\GraniteSDK.Build.cs
Line 26: if ( Rules.WindowsPlatform.Compiler == WindowsCompiler.VisualStudio2015 )
to: if ( Rules.WindowsPlatform.Compiler == WindowsCompiler.VisualStudio2015 || Rules.WindowsPlatform.Compiler == WindowsCompiler.VisualStudio2017 )
Try compile again: