Major indices closed sharply lower on Friday amid ongoing concerns that the artificial intelligence trade may be wavering and rising oil prices.