If your hard drive is getting errors, you can scan for bad sectors and try to fix them with the Check Disk Utility.
If you're running out of storage on your PlayStation 4, it might be time to consider adding an external HDD, but which work ...