U.S. stocks closed lower as chipmakers led declines amid growing doubts over the sustainability of the AI-driven rally.