it's that overcooking that can cause the sauce to curdle. when your white sauce is ready, remove it from the heat. if it's really hot, let it cool a few minutes. the sauce only needs to be hot enough to melt the grated cheese, which you should stir in gradually until just melted and incorporated into the sauce.