As you neither write what devices were involved, nor how you proceeded to "move the card", I can give just some generic information – though I think you're already aware of those facts:
Never simply "pick the card out" of the device (be it the phone, tablet, or computer). First you need to tell the system to close all files it might have opened from there: for performance reasons, they are always "cached", and only written back in intervals – so a file might be only partially written when you simply drag out the card. Preparation for a "clean remove" is done in different ways, depending on where the card is connected to:
- On Windows, it's usually called "safely remove", and found in the systray.
- On Linux, most graphical file managers offer an "eject" button.
- On Android, you find a corresponding setting in Settings › Storage to remove the card.
- On all systems, it's safe to remove the card when the OS is "shut down" and the device switched off :)
When the problem remains despite of always sticking to above rules, the cause might be a different one. More than once I've read about specific combinations of device brand and card brand didn't play well together, and switching to a different card brand solved the issue. So in that case I'd recommend trying a different card. Several shops permit you to return it if it doesn't work out, so this would give you an option to try without to much (financial) risk.