AI is everywhere, leaving investors exposed if the technology doesn’t pan out as expected.