It’s the SD card, sometimes it gets corrupted or broken, you just get a new one and transfer the files via FTP to your computer then transfer the files to the new SD, and why do I say use FTP? Because it will usually give an IO error if you use your PC’s SD card slot.