Don't worry, it's actually super easy
How to Fix Windows Could Not Complete the Formatting Error – 100% Resolved
It’s a good idea to want to format your SD card, USB flash drive, or external hard drive. But what if you get an error message along the way that says “Windows could not complete the format”?
If you get this error, it might make you panic. Or it might make you want to abandon the task.
But don't worry. Finding a way to solve the problem is easy-peasy!