The texture of a traditionally made ghee can be grainy, solid, creamy or liquid, they are all natural and totally normal forms of Ghee. The variety of healthy fatty acids in the Ghee combined with its storage temperature define the texture of the Ghee.
Ghee that cools more rapidly, has a more solid texture than Ghee that is cooled slowly which then retains a softer or even completely liquid texture. The change in texture doesn't affect the taste, quality and shelf life of the Ghee and is perfectly safe to consume.