There could be many reasons through which SD card can get corrupted.
So, here is the general solution that will help you to fix SD card errors and corruption and recover files from SD card:
• Connect Card with PC.
• On your PC, click Start and select Run, type CMD and hit ENTER.
• A new command prompt window will get open.
• If your SD card drive name is F: Drive, then type following command: attrib -h -r -s /s /d f:\*.* and hit ENTER.