By default, if a Dispute is open, invoices are not excluded from the workflows. Although YayPay allows excluding invoices status “Promise to pay” on system-wide settings level (Settings=>Business checkbox ” Remove invoices with the promise to pay status from email reminders “).
In your case, we suggest adding a new rule in the workflow (or in Global Rules if you want this to apply to all the invoices) as shown below: