Please help me

my boyfriend of almost 2 years said that my mental illness causes his stress and is hard for him. he finished with "but it's just part of being in a relationship" I wasn't mad when he said this just upset and confused. i feel bad and don't want him to feel trapped. What should i do?