Error getting deploy keys

After updating gitlab to 16.9 we encounter errors for some users getting deploy keys.
No key is available in the UI. With Admin/root permission it is working, but not with user/project permission.
Error message in the UI: Error getting deploy keys