Status E-Mail on dynamic pipelines

Hello everyone,
We currently use dynamically generated pipelines in gitlab, which also works wonderfully. In the project settings => integrations we have also enabled the sending of status emails if a pipeline fails. However, we now get these emails twice: if a child pipeline fails, the main pipeline naturally fails as well. This generates two pipeline errors and thus sends two emails. Is there a way that only one email is generated?

image

Thanks for your help.