I guess you can just buy from a reputable electronics distributor such as Mouser or Digikey. They have to keep their supply chains clean due to having larger customers that would abandon them in a heartbeat if they did not.
Yes, you will pay more for an SD card from one of these places than on Amazon. But not insanely so. That is the price of assurance.