To fix cheese sauce that’s become grainy, try removing from the heat and whisking in a little lemon juice. Better still, prevent graininess by grating block cheese (do not use prepackaged grated cheese) and use a mix of cheeses (not just cheddar).