I had this error. In my case, I had the wrong selection in the For Each Loop container. Under collection there are three options:
name and extension
fully qualified
name only
I made changes to a variable, and that impacted how the loop was reading the file name. After I updated the For Each Loop option, my package worked without an error.