"A device attached to the system is not functioning." Error for Assign activity

Hello,
I am getting the “A device attached to the system is not functioning.” error on an Assign activity with the values:
Array = Directory.GetFiles(Folder).OrderByDescending(Function(d) New FileInfo(d).CreationTime).ToArray

The problem is, this error doesn’t occur all the time so I was wondering why I get this error from time to time.