Some brands of ricotta may be more grainy than others due to their natural graininess. There is a difference in texture between the different versions. In order to address this, you can whisk it for a few minutes before using it in the recipe, or you can try another brand.