500 server error when visit a project members page

The Git install 12.9.2 is throwing 500 error when i click on project member’s tab.
The api for members/all is showing
[{
“id”: 2,
“name”: “XXX YYY”,
“username”: “XXX”,
“state”: “active”,
“avatar_url”: “”,
“web_url”: “http://.com/XXX”,
“access_level”: 40,
“expires_at”: null
},
{
“access_level”: 40,
“expires_at”: null
}]

How can I clean the block without any user details and a possible culprit for the 500 error code.
I see teh same issue reported 500 server error when visit a project members page with pending invitation (#23198) · Issues · GitLab.org / GitLab · GitLab earlier but don’t see a fix for it.