Allow your buttercream to set at room temperature for a few minutes. Add a bit more heavy cream and continue to whip. This allows the butter to warm up (if it was still a bit cold) and adds more moisture to help dissolve those sugar granules.