Unable to push docker image to gitlab container registry hosted on prem (self-managed)

Hello Team,

Describe your question in as much detail as possible:
I have installed a self hosted Gitlab Container registry on a separate server behind an Apache Proxy Server.It has it own domain with https enabled.
The problem is when I try to push the image to the registry after successful login I am getting the below error:
docker push registry.gitlab.example.com/web/web-app:latest
The push refers to repository [registry.gitlab.example.com/web/web-app]
5f70bf18a086: Layer already exists
cf08d982110e: Pushing [==================================================>] 85.04MB
ea965826a88e: Layer already exists
d0c0422d1767: Layer already exists
bdab43a54a1f: Pushing [============> ] 67.58MB/277.7MB
8d7be0d3cbdd: Pushing [==================================================>] 20.38MB
cc2447e1835a: Pushing [==================================================>] 7.626MB
received unexpected HTTP status: 502 Bad Gateway
Also I noticed on registry server under v2 folder there is a directory with the name of the image and inside it has has many directories.
I am not sure is it the complete image uploaded or few layers of it.
However on the Gitlab interface under container registry I see nothing.
During the push I also observed error logs on Apache proxy server as:
[Sun Oct 15 15:14:46.723650 2023] [proxy_http:error] [pid 112606:tid 139963756689152] [client] AH01097: pass request body failed to ( from ()
[Sun Oct 15 15:14:48.771432 2023] [proxy:error] [pid 112392:tid 139962682947328] (32)Broken pipe: [client] AH01084: pass request body failed to (
[Sun Oct 15 15:14:48.771512 2023] [proxy_http:error] [pid 112392:tid 139962682947328] [client] AH01097: pass request body failed to ( from ()
I followed all the troubleshooting available however could not fix this issue.
Any help would be highly appreciated.