Push error : Rpc failed http curl 22 the requested url returned error 504

I created a new repo on gitlab to push my project, the project has some large files.
The repo also has the LFS enabled, I already have a similar project on gitlab that i can easily push into.
But pushing my large files into the new repo is a hassle, I tried with the CLI and even used sourctree, but I get these errors:
This was with the command line
Push error : Rpc failed http curl 22 the requested url returned error 504

These were with sourcetree:

  1. Rpc failed curl 55 SSL_wire() returned SYSCALL, errno = 10053
  2. Rpc failed http 502 curl 22 the requested url returned error 502 bad gateway

I get these errors after the pushing is complete, on the command line around 50k files(3.4gb approx) were pushed. This got completed, got the message “Done” and then this error popped up.

Been stuck for a couple of days now. Please help