When you microwave liquids in a confined space, particularly those with a high milk content, the temperature of the liquid above the surface is much higher than it is below. Therefore, when you stir this liquid the gasses produced by the heating process escape and spill over the edge. To overcome this problem, never allow a liquid to fill a container more than three quarters and stir at least once halfway through heating / cooking time.