Neither one worked. What finally helped was a simple three-part sentence I could use even when my heart was pounding.
Part 1. Name the specific thing, not the person. "When the report comes in at 5 PM on Friday" is something you can discuss. "You always dump things on me" is an attack, and the other person will defend themselves instead of listening.
Part 2. Say what it costs you. "It means I miss my son's game" or "I can't do my own work properly." Keep it factual and short. This is not a complaint, it is information they did not have.
Part 3. Say what you need, then stop talking. "I need it by Thursday, or I can't take it on." The stopping is the hard part. Most of us keep talking to soften it, and the softening is where we lose the boundary or lose our temper.
Put together it sounds like this: "When the report lands at 5 on a Friday, I end up working through the weekend. I need it by Thursday, or I can't take it on."
Notice there is no insult, no speech and no apology. It is calm, specific and over in about ten seconds.
Before you say it, take one slow breath out. A longer exhale than inhale tells your body that it is safe, and your voice drops with it. I still forget this about half the time, and I still get it wrong sometimes. The goal is not to be perfect. The goal is to respond a little more often than I react.
If the other person gets upset anyway, that is okay. You are responsible for saying it clearly and kindly, not for how they feel about it.
This is one tool from my book, How to Stop Reacting to Everything. If you are tired of snapping, freezing or exploding, there are many more practical tools in it.
How to Stop Reacting to Everything on Amazon: https://www.amazon.com/dp/B0HHRVMNXC