Make sure your milk is fresh. If you accidentally use old milk the high acidity from spoilage will cause the mixture to curdle when it just slightly heats up.