Panna cotta can become grainy if the cream mixture is overheated or if too much gelatin is used. Be sure to follow the recipe instructions carefully and avoid overheating the cream.