Stocks tied to artificial intelligence fell sharply, pulling down markets across the globe, while oil prices rose at the same time.