Self-destructive behavior in a relationship, what to do?

Hey, I'm recently in a relationship and everything is really great, but my boyfriend had a lot of traumatic experiences before we knew each other, which led to various mental problems (he's already in therapy). In any case, he told me that he also exhibits self-destructive behavior—things like distancing himself and being cold towards his…