500 - internal_error - Error searching for 'code'

My organization uses about 20 accounts - each with one or more connectors. Almost all of them work fine. However we are having an issue on one of them where we cannot authorize any new users via the hosted flow. We are getting 500 errors that show up in the auth logs. Each time a user attempts, these two entries are logged on the /v3/connect/token endpoint:

{
“error”: “internal_error”,
“error_code”: 500,
“error_description”:
“Error searching for ‘code’”,
“error_uri”: “https://developer.nylas.com/docs/api/errors/”,
“request_id”: “4150157538-427fee26-ded8-4ae8-98f2-cbb00ad00e8a”
}

{
“client_id”: “e611daf3-f733-4fae-b468-a0369dc8b207”,
“client_secret_provided”: true,
“code_provided”: true,
“code_verifier_provided”: true,
“grant_type”: “authorization_code”,
“redirect_uri”: “https://nmg.navigahub.com/ew/nmg/interfaces/nylas/authentication”
}

Hello,

Thank you for raising this issue. We will open up a support ticket and get back with our findings.