Accumulated incorrect responses to finish a block or experiment

Hi,
I’d like to know if there is any tool or procedure to use if I want to finish a block or the experiment after the participant have made X number of incorrect responses in a row. I saw that you can move to the next block but only setting the configuration for one response and not for a group of incorrect responses, so I don’t know if that is possible with super lab .

Thanks in advance.