Boundaries are best stated and set by asking or showing rather than telling:

+ It hurts when you talk about...
+ I'm not comfortable with (this) subject...

And alternately, by simply not responding to stuff that you are uncomfortable with or that hurt...

Eventually, they stop talking about it... But you are not TELLING (controlling their part of the conversation) them...

They actually end up choosing to stop talking about that stuff...