Hi,
I found a article for this ,It seems we need to some requirements for the migration, just for your reference:
https://migration-blog.com/2013/11/05/how-to-write-or-migrate-sidhistory-with-powershell-2/
You may try use ADMT to migrate sidhistory.
Following links for your reference:
https://blog.thesysadmins.co.uk/admt-series-1-preparing-active-directory.html
https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2008-R2-and-2008/cc974332(v=ws.10)
This response contains a third-party link. We provide this link for easy reference. Microsoft cannot guarantee the validity of any information and content in this link.
Best Regards,