I had the same issue after updating to v4.5.1. Adding 'use server' to the auth0 client initialization module (usually lib/auth0.ts) resolved the problem.
By the way, adding env to next.config is not recommended by Next.js, as it's a legacy API.