Investors must weigh missing out on extraordinary AI growth against potential pitfalls that include ‘existential’ risks to humanity