Heat the milk gently and avoid letting it boil vigorously. Curdling often happens when milk is heated too quickly or mixed with anything acidic.