Zypper dup, installation has completed with an error, couldn't download file, fixed by zypper refresh

You can increase the retries count from the default:

# grep silent zypp.conf
 download.max_silent_tries = 8
#

0 will cause there to be no limit. 5 is default.