Oftentimes this can happen because you heated the coconut oil and marshmallows on too high of heat and the sugar started to crystalize and won't be smooth. Make sure to use the proper heat when melting the marshmallows so you can make the best vegan rice krispie treats.