This error seems to appear when trying to overwrite a local or remote file. The workaround is to delete the destination file instead of overwriting it.