copyfile errors and dot files using rsync
I was using the -E option to copy alias files on macOS (as without -E option alias files copy as executable files). The -E Options worked for copying the Alias files, but caused the same error as here on other files (COPYFILE_UNPACK failed:45). Therefore appears error is probably caused by using -E option in macOS.

Fortunately using Homebrew and running brew install rsync to install a more recent version of rsync fixed the problem.

Source: https://bayton.org/2018/07/how-to-update-rsync-on-mac-os-high-sierra/