Shares have soared this year, but the online retailer's plans for an AI spending spree haven’t gone down so well.