Mousse can become grainy if the cream has been overwhipped. Adding fresh cream to your mixture can help fix the grainy texture. Chocolate can also break which will make it grainy if exposed to water. The best way to fix this is to add some alcohol, like rum or bourbon, or strong coffee.