GitLab recognizes .h265 extension as text leading to 502 error.
If a file with this extension exists on a branch, the compare feature and the merge request will lead to a 502 error. Browsing the files, we can see that a text icon is associated instead of a binary one like it is for other video formats. Mime types should be easier to configure.