The leaked messages show early challenges for Amazon’s big AI product and concerns about losing customers to Microsoft