Pulling a flash drive out while files are copying can corrupt them, or the whole drive.
1. Wait for copying to finish.
2. Click "Safely remove" or "Eject" before pulling it out.
3. On a phone with OTG, eject it in storage settings.
4. Don't use the drive while the computer is going to sleep.
5. Keep the cap on to protect the plug.
If a drive gets corrupted, use recovery software before formatting.