Improve the user experience for fetching commits from slower endpoints
<!--IssueSummary start-->
<details>
<summary>
Everyone can contribute. [Help move this issue forward](https://handbook.gitlab.com/handbook/marketing/developer-relations/contributor-success/community-contributors-workflows/#contributor-links) while earning points, leveling up and collecting rewards.
</summary>
- [Close this issue](https://contributors.gitlab.com/manage-issue?action=close&projectId=278964&issueIid=30348)
</details>
<!--IssueSummary end-->
For fetching a large number of commits we see that some GRPC calls can take as long as > 20 seconds https://gitlab.com/dankm/freebsd-ports/commits/master/databases/php73-odbc/Makefile.
Where this does not always result in a 502 on the user I think it would be a much better experience to fail faster and offer an alternative, similar to what GitHub does https://github.com/freebsd/freebsd-ports/commits/master/databases/php73-odbc/Makefile
related to customer issue https://gitlab.com/gitlab-org/gitlab-ce/issues/64920
issue