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

Hi. The issue is cause by mismatch between different parts of strapi code in earlier versions. Update to 4.15.5 helped to solve it.