In your authorizeUser function, are you using bcrypt? I also got the same error and solved it by removing bcrypt. How do I salt & hash the password then? Currently I have no solution for this.
I really should look into the error stack trace and maybe opening a new issue either on Next.js or Auth.js github