Yeah that's definitely hard. When the baby was ~1 year old, my wife and I had a big fight and there was a few moments of genuine yelling/screaming. The baby burst out in the most epic cry we've ever heard so we immediately stopped...
But even now, whenever the baby (now 16 months) senses tension in our voices when we talk to each other she randomly starts crying and we both back down.
Emotions are obviously hard to control, but knowing that it's impacting the kid long-term helps keep us at bay.