Build exceeded memory limit and was terminated

I have a large project and this error does not occur locally or on vercel. But when deployed on cloudflare, “build exceeded memory limit and was terminated” will appear. Is this a problem with my project code or because I don’t have an upgrade plan on cloudflare