If you don’t remember the lyrics to the Kenny Rogers hit “The Gambler, here is the relevant portion for our purposes:

You’ve got to know when to hold ’em,

Know when to fold ’em,

Know when to walk away …

Divorced Girl Smiling has some specific advice for when to walk away from a discussion with your ex. Read more here: https://www.divorcedgirlsmiling.com/arguing-with-the-ex-know-when-to-walk-away/