I created a merge request on gitlab (local) server. Now whenever I click on the merge request, the request times out with error 500. Before that I used to get an error code 504
Go to the destination repository, find the merge request on that repo and just click "Close Merge Request". Since it is your merge request, you have the rights to do so.