How to restore uploaded backup in Drupal 7 (public files or entire website) correctly?
I think it's a concurrency issue when D7 makes a file object in db.
try to use this modules Upload QC
please let me know if it works with you.

also try to check the temp file name. and make sure tat the database is restored correctly.