I ran into this issue with an rsync script after I changed the destination from a local directory to a CIFS mount. All of the files in the source directory will throw this mkstemp protocol error and the process will still take a regular amount of time to complete despite no files showing up in the destination.
root@VirtualBox:/# rsync -aPh --progress [email protected]:home/backup /mnt/1TBHDD/backup --delete
receiving incremental file list
backup/
rsync: mkstemp "/mnt/1TBHDD/backup/.2022-05-22T13:09:38_db_backup.sql.gz.JVyRsP" failed: Protocol error (71)
         52.49M   0%   50.06MB/s    0:02:39