@pt-83 are you sure that this error is from your factory? Do you use the File facade somewhere in your project? Or the Storage or anything that is not setup correctly?
-- EDIT
I now see that you use $this->faker->file that won't work, unless you give it a directory, or a temp file that can be used. Take a look at this thread
https://laracasts.com/discuss/channels/testing/populating-database-with-images-with-faker