Temperature too high --> fat blooming (structural collapse by disproportionation). At higher temperatures, some of the fats in small crystals will melt, and are taken up by larger crystals. These show on the outside as whitish stains. Moisture too high --> sugar crystals may be partially dissolved, re-crystallise into larger crystals, whitish stains on the outside.