Crystals or grit form when an ingredient is above the amount the formula can keep dissolved. Common culprits are acids with low water solubility — salicylic, azelaic and ferulic acid — plus anything that drops out in the cold or as solvent evaporates. The fix is a better solvent system, a lower level, or a more soluble form of the active.