AI stocks entered a period of uncertainty as Wall Street has grown more queasy about growing costs and questions about the trend's direction.