When I use google colab I get this error more than once and randomly Sometimes it works and sometimes not
OSError: [Errno 5] Input/output error
Another possible solution would be to save your files in a different (new folder) directory. I think @bob-smith's solution is one the best solutions for this problem, I am just showing a variation of the original solution which worked for me.