It may happen sometimes depending on the mawa quality (fat content). If so knead the peda dough while it is still warm and the mixture will become smooth. - Also, keep mashing the khoya with a spatula while cooking khoya-sugar mixture, so everything comes together without being too grainy.