Before declaring your cards unusable, please try doing low-level reformats on your cards from a computer using the official SD Memory Card Formatter app. Select “Overwrite format”, not “Quick format” and leave “CHS format size adjustment” unchecked.
You may also wish to invest in high-endurance SD cards specifically designed for cam use. I use these, but other manufacturers also market high-endurance cards.