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

Hey I had this same problem when packaging to Android ASTC. For me switching of ES3.2 and turning on vulkan rendering, then deleting my saved and intermediate files solved the problem (UE 5.1.1)