Stocks slid on Friday, led by a sharp decline in the tech sector, as investors continue a “rotation trade” out of AI stocks.