SanDisk Memory Card Write Protected – Can't Delete, Format, or Add Files

If all else fails, formatting is your last resort. This is a last resort; there are other options, such as using command-line tools. Check out these tips.

https://forums.sandisk.com/t/why-is-my-sandisk-card-write-protected-and-how-do-i-remove-it/247759