Goldman Sachs CEO David Solomon warned that stock markets could face a drawdown over the next year or two, following a period of record highs fueled by the AI investment frenzy.