The error points to the file read operation, which is a bit weird.
I assume you are reading some files in the __getitem__ method and load the data.
Which kind of files are you using and are you using any custom collate_fn or sampling?