Gatsby site deployment fails with error UNHANDLED EXCEPTION write EPIPE

Hi @hillary,

see Gatsby app deployment fails. Local build works for details. The answer there is not satisfying. Meanwhile, I understand this must be some resource related issue. Probably I should optimize some queries. Removing about 500 documents (pages) resolves the issue.

Additional information: On both, Vercel and Gatsby Cloud, our site deploys without issues in significant shorter build time.

Thanks for your help.