If you get a bad sector on your hard drive, sometimes it will throw an Input/Output Error, then your filesystem will re-mount Read-Only. You don’t neccessarily need to replace the drive or even the filesystem, follow this guide:
https://www.smartmontools.org/browser/trunk/www/badblockhowto.xml