This happens when no bake cookies are overcooked. I've found a 2-minute cook time to yield a more consistent result than the original 1-minute cook time I grew up learning. If you cook the chocolate mixture too long, it reaches a temperature closer to the hard crack stage which will produce a drier harder cookie with a grainy texture from the sugar crystallizing.