Hi @kinshuk,
It's possible you need to update the Callback URLs for the Application entry of Mattermost inside your GitLab instance.
Can you try:
1. Logging into your GitLab instance as the admin
2. Going to the Admin area -> Applications
3. Then click Edit on GitLab-Mattermost
4. Update the Callback URLs to your new domain/URL
5. Save the changes
Then try to use Mattermost with GitLab again.