Add catch to `projectGroups` endpoint
<!--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=321317)
</details>
<!--IssueSummary end-->
The following discussion from !53781 should be addressed:
- [ ] @nicolasdular started a [discussion](https://gitlab.com/gitlab-org/gitlab/-/merge_requests/53781#note_507135978): (+1 comment)
> Question: Anything in an error case that we can or need to handle?
## Possible solution
```
.catch(() => {
flash(__('Something went wrong while fetching projects'));
if (callback) {
callback();
}
});
```
OR
```
catch(callback);
```
issue