Boyfriend!

I’ve been with my boyfriend for over a year now. & lately I’ve been having so much anxiety and bad thoughts (due to my past experiences) . I know he has done nothing wrong but I always feel something bad when he’s out ....help. I’m not sure how to control this.