It could have something to do with the shea butter, as shea does have a grainy consistency to it sometimes (not due to the quality of the shea itself usually). Have you been continuously stirring your mixture during the cool-down phase? Sometimes, that can help with grainy-ness. There are...