I always burn in and verify microSD/flash memory before deploying it, for MacOS users there is F3X which is Free and Open Source.. dont fall for the paid crap in the app store:
GitHub - insidegui/F3X: Fight Flash Fraud: test your SD cards to see if they're genuine and in good working order
For...