Amazon was reeling. The company’s revenue growth had fallen to its lowest levels in decades, and it was grappling with a ...