Hey, I’m not sure you’ll get to see this comment,but I got the same issue.
It works fine on my local computer. But after I deployed Strapi to VPS I got the same error when I tried to log in to the admin panel.
Did you solve the problem? If so, can you share your exprience? I hope to hear back from you.