Hi,
It sounds like you are getting Function invocation timeout error. This means The function is taking too long to process a request: Check that any API, or database requests you make in your function, are responding within the Serverless Function maximum duration limit applicable to your plan. You can learn more here: FUNCTION_INVOCATION_TIMEOUT