Having the same issue here too.
my code for font is simple
const notoFont = Noto_Sans_KR({
subsets: ["latin"],
});
It doesn't make error when I start my project with "run dev" command. It only makes error when I build my project with "run build" command. I tried deploying my code to actual server even though it makes error when build, and it works well on deploy environment.
I don't know what is the problem. Maybe SSL?