safety valve
a way of allowing someone to express strong or negative emotions without harming other people.
I often think football acts as a safety valve for a lot of stored-up male aggression. (often + for)
Cambridge English Idioms Dictionary