There are three main remedies for this. The first is to slowly add some liquid to the buttercream. Be careful and add the liquid very slowly or the frosting will no longer hold its shape. Another option is to let the buttercream rest for a few hours or overnight if you have time. This will allow time for the remaining sugar to soften. The last option would be to add melted chocolate to the buttercream. This will mask the texture.