Error 502 when creating merge requests for more number of commits

I am getting error 502 for many merge requests which have a large number of commits/changes.

Is there a way I can get any more error log which will be helpful along with this issue?

I am running Gitlab CE on a 2GB memory VPS with dual core processor.