If the rice grains are cooked too much or if the milk gets reduced too much or is less, then rice grains become lumpy. To fix this, add some more milk in the Kheer and break the lumps with a wired whisk or spatula.