The MacroError command specifies the number of macro errors that must be encountered before the macro will crash and stop running.
MacroError limit value
• value – An integer value that specifies the number of macro errors.
You will typically add the MacroError command to be beginning of a macro, or to the Keys.ini file.