As U.S. and Iranian forces continue exchanging strikes, investors are increasingly grappling with the possibility that the conflict could become more prolonged.