Strapi /auth/local api throws 500 error for wrong password or email not confirmed

Hi, I still have the 500 error if the password is wrong after updating to 4.16.2

{
“data”: null,
“error”: {
“status”: 500,
“name”: “InternalServerError”,
“message”: “Internal Server Error”
}
}