See Files on SMB-share corrupted while up- and downloading · Issue #26457 · nextcloud/server · GitHub for a workaround