if youre comfortable, telling the person those things upset you (w/o guilting them for having emotions) could make it easier for you to work around it, maybe w/ their help
Yes, there are situations in which talking to them could be helpful; sometimes it is possible to work out things everyone involved can do to make things work.
It’s definitely important to acknowledge that the solution can’t be for that person to just stop being angry or depressed. It doesn’t work that way.
That said – I think that telling someone you’re being triggered by something they do is inherently likely to result in them feeling guilty. In particular if it’s something that they don’t much like about themselves.
There isn’t any way of bringing up this kind of problem that can reliably avoid the other person feeling guilty or ashamed. So, if they feel really guilty, it doesn’t necessarily mean that you’ve done something wrong in bringing it up.