Investors closed their books on a month of mounting artificial intelligence risks. Then a conflict in the Middle East raised a whole new set of worries.