If a mall were to replace Build-a-bear with Stuff-a-snail and the Stuff-a-snail tanks then the mall is on the hook for that space's rent (or really the mall just takes a profitability hit; w/e).
If Amazon decides to replace Duracell AA Batteries with Amazon Basics AA Batteries and every gadget comes with a lithium battery now so nobody needs AA then Amazon just cancels future orders and doesn't have to pay taxes for the land the battery factory is on. Not even sure Amazon needs to cancel future orders either; AmazonBasics might work like "Amazon Brand" and they let a third party use the AmazonBasics (or alternative) trademark.
If the item is just "Amazon Brand" and not AmazonBasics then Amazon literally has no risk as it's just a seller (not Amazon) having some exclusive agreement to sell that product on Amazon. If that seller does well then Amazon collects fulfillment fees and if that seller does poorly then Amazon collects warehousing fees.
https://en.wikipedia.org/wiki/Shopping_mall
> A shopping mall (or simply mall) is a large indoor shopping center, usually anchored by department stores.