ERROR scan: Readdirnames XXXXXXX failed: readdirent: input/output error XXXXXXX

Solved, it was a problem with my pendrive, I have formatted it and this no longer happens.