https://vercel.com/guides/what-can-i-do-about-vercel-serverless-functions-timing-out
it might be because you are using a free tier qouting the docs
Maximum function durations