I've bought six different SD cards, but every single one is getting corrupted during testing with h2testw. To ensure my testing method is valid, I tested an older SD card that I've used before and it came back as working. The files I used for h2testw were sourced from a 3DS modding website, which seems trustworthy. The SD cards that failed the test also won't let me copy random files onto them, so it looks like they really are defective.
I've tried cards from Amazon Basics, Sandisk, Samsung, and Microcenter, but the only one that worked was a Lexar. After a card fails the test, I've reformatted it to exFAT but it fails again. The old one was formatted as FAT32. Although I've been told that the format shouldn't matter, I'm still having issues. If anyone has other suggestions for verifying the integrity of SD cards or if I'm making mistakes in my approach, I'd really appreciate the help.
Also, I found out that my SD card reader was falsely advertised to work with microSDXC cards, and that seems to be causing some problems too.
2 Answers
It’s important to buy SD cards from reliable sources. Where did you get yours? Sometimes, onlines stores can sell defective batches without realizing it.
You might want to try using a dedicated SD card formatter; I've had good luck with the one from Stone Age Gamer. It can help with any formatting issues that could lead to corruption.
I tried that formatter, but I still ended up with a corrupted card.

I bought some from Microcenter, Best Buy for a few Sandisks and Samsungs, and the rest were from Amazon.