Here’re some methods for you:
1.Backup and restore SharePoint workflows through content database.
Reference:
Migrate SharePoint designer workflows
2.Migrate workflows by changing the config.xoml files manually.
References:
Migrate SharePoint designer workflows step by step
How to move or copy SharePoint designer workflows
3.Use ShareGate.
If the response is helpful, please click "Accept Answer" and upvote it.