I've actually heard arguments it's actually good for the yeast, would be interesting to find out if that's true. I have no issue having lots of starsan bubbles and foam in the carboy or bucket.
I'm assuming it's a 5 gallon batch? I've heard of people making the same mistake and the beer turned out just fine. I would bottle/keg it anyways because my experience is that when you think you made the worst mistake possible for some reason beer is so resilient it comes out great anyways