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

I have the same problem. Started with version 4.11.1.
Updating strapi to version 4.12.7 - did not help