If the task can run in Hub but not in QMC (or vice versa ), it is usually because of the account. When you run the task in Hub, the user who is currently logging in does the job. If the task is triggered in QMC, it is Qlik Sense's service account. You may need to check both account have the same access permission.
By the way, the file path in the log is ... \D$\
It may still work. But it is recommended to create a shared folder, set the proper permission and use its UNC (Universal Naming Convention) path.