Vercel killing node js process and throwing 500 errir

I have a API route which returns over 100MB of Data, basically a db dump. However, vercel is throwing 500 error and the logs show that its killing the node process.

there’s a maximum response size lambdas can return of 6MB and 20MB if streamed Lambda quotas - AWS Lambda