SSIS Transfer Login Task Error
Instead of going through the rabbit hole of finding a fix for the error, I would highly suggest you use dbatools
Copy-DbaLogin

This command migrates logins from source to destination SQL Servers. Supports SQL Server versions 2000 and above. Migrates logins with
SIDs
passwords
defaultdb
server roles &amp; securables
database permissions &amp; securables
login attributes (enforce password policy, expiration, language, etc).

e.g.
Copy-DbaLogin -Source sqlserver -Destination sqlcluster

and there are many more commands that will make your life easier