Google Apps Script (GAS) has a total script runtime limit of 6 minutes for free accounts, and 30 minutes for work accounts.
If you get the error ‘ScriptError: Exceeded Maximum Execution Time’, consider breaking up your lead list into smaller lists and run the task again.
Tip: You can copy paste the rows that have already run into a new sheet, delete them and resume the task only for rows that haven’t run yet.