The S&P 500 posted a four-day losing streak Tuesday amid fears that artificial intelligence stocks are overvalued.