More than likely, they can just claim "we're just a platform, someone else uploaded the file". This is the inherent problem with Section 230 immunity for platforms: We've given companies a blank check to be used as part of criminal enterprises, and given them no incentive to police illegal behavior on their networks.
In this scenario, Amazon is able to literally produce, sell, and distribute counterfeit material, keep the profits from doing so, and face no legal repercussions. That is the definition of a broken law.