Anyone know how to fix an SM5 error when compiling in UE 4.27.2?

Heres my log IDK why but I cant get the materials to cook.

UATHelper: Cooking (Windows (64-bit)): LogMaterial: Display: Missing cached shadermap for leopard-2a4-hull_11 in PCD3D_SM5, Default, SM5 (DDC key hash: E913AD87DD2C94CEA0A8AC13AE042E5927BDD33B), compiling.
UATHelper: Cooking (Windows (64-bit)): LogMaterial: Warning: [AssetLog] C:\Users\Troop\OneDrive\Documents\Unreal Projects\SCUM_CommunityEditor\Content\ConZ_MOD\NewFolder\leopard-2a4-hull_11.uasset: Failed to compile Material for platform PCD3D_SM5, Default Material will be used in game.
PackagingResults: Warning: [AssetLog] C:\Users\Troop\OneDrive\Documents\Unreal Projects\SCUM_CommunityEditor\Content\ConZ_MOD\NewFolder\leopard-2a4-hull_11.uasset: Failed to compile Material for platform PCD3D_SM5, Default Material will be used in game.
UATHelper: Cooking (Windows (64-bit)): LogMaterial: Warning: Cooking a material resource (in leopard-2a4-hull_11 hierarchy) that doesn’t have a valid ShaderMap! Shadermap pointer is null.
PackagingResults: Warning: Cooking a material resource (in leopard-2a4-hull_11 hierarchy) that doesn’t have a valid ShaderMap! Shadermap pointer is null.
UATHelper: Cooking (Windows (64-bit)): LogInit: Display: LogMaterial: Warning: [AssetLog] C:\Users\Troop\OneDrive\Documents\Unreal Projects\SCUM_CommunityEditor\Content\ConZ_MOD\NewFolder\leopard-2a4-hull_11.uasset: Failed to compile Material for platform PCD3D_SM5, Default Material will be used in game.
UATHelper: Cooking (Windows (64-bit)): LogInit: Display: LogMaterial: Warning: Cooking a material resource (in leopard-2a4-hull_11 hierarchy) that doesn’t have a valid ShaderMap! Shadermap pointer is null.

Hey there @TrooperManiac!

From what I can tell, primarily one material is causing issues, which is the leopard-2a4-hull_11 material. The first thing I would recommend to do is back up your project somewhere safe. Next is to open the material in engine, and verify there are no errors in the material console on compilation and saving. If there are some, reply with them here and I can help you with fixing them.

If there are none, it’s possible that this is a data sync or caching issue. I noticed the project is in a subfolder of Onedrive, I would recommend disabling Onedrive’s sync on project folders as lots of Unreal Engine files are binary and can be corrupted easily with the sporadic syncing of Onedrive.

After any fix, I would also recommend deleting the Intermediate, Saved, and DerivedDataCache folders from the project directory. These will be regenerated upon next project launch.

Let me know how it goes!