Hi @Amit Dimri ,
Per my knowledge, redirecting links to local search centers is not possible in Sharepoint Online.
Unfortunately, you may need to follow the first approach: Edit each document through some automated scripts to achieve your needs.
Thank you for your understanding and support.
In addition, I found a thread for you that is similar to your needs, you can check it out:https://learn.microsoft.com/en-us/answers/questions/1157282/hyperlinks-do-not-work-after-move-from-shared-driv
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.