Gritty hot chocolate is the result of not fully dissolving the cocoa-sugar mix. Whisk, whisk, whisk in the beginning to make sure the cocoa powder is fully incorporated and the sugar is dissolved in the hot water, and keep whisking after adding the milk.