The error, "A specified logon session does not exist. It may already have been terminated" is encountered as part of a Stack Trace dump found in the Lenovo Patch.log or the DataMigrationTool.log beginning with version 2.5.586.0 orlater.
The user account encountering the error is a member of the Protected Users Active Directory security group.
This is caused by the extra protections that Windows applies to accounts that are a member of this security group. Highlighted in the Microsoft documentation for the Protected Users security group is the following warning:
To utilize the Lenovo Patch plugin, the account will need to be removed from the Protected Users Active Directory security group to allow successful authentication.