You might have overwhipped your buttercream and incorporated too much air. If this happens, just take a sturdy spatula or spoon and fold the buttercream in on itself for a few minutes until all the bubbles are gone.