According to https://github.com/vercel/next.js/issues/57005#issuecomment-1779807828 the error has been fixed in nodejs 21.1.0. So, instead of downgrading, an upgrade may be also a solution.