Cannot open file on Sandisk pen drive

Did you remove the drive from the USB port without using the Safely Remove option?  If so the File Allocation Table could be screwed up, or the particular file wasn’t closed before the drive was removed.  Try running a CHKDSK command on the drive, see it that helps.