Hi Eduardo. Thanks for reading.
Cloud functions have a maximum time execution. The default maximum time is 60s and that is probably what is causing your function to fail.
What kind of processing is there in your functions? Maybe leaving them with as little processing as possible can help.
Another solutions is increase the timeout of your functions. In the Google Cloud Console, select your project and find the Cloud Functions item. In this page you’ll can see you functions, click over your functions and click in EDIT.
You’ll see some informations abour yout function. Look for the Environments variables, timeouts and more and change the timeout. See the below image.