The stock market sell-off over the past month has gotten overdone and will be offset in part as companies get back to buying back their own shares, according to a Goldman Sachs analysis that sees the market gaining close to 6 percent over the next two months.