Currently, I have custom events implemented in source code and I would like to migrate them on GTM. Is there any option to migrate all those custom events rather than doing it manually (implement all custom events in GTM again from scratch)?
No, there's definitely no such option due to how many ways custom events can be implemented.
They should be carefully migrated manually. Preferably by someone with solid front-end experience or in collaboration with FE developers.