Advice needed majorly

I’ve been getting really bad nightmares about an ex that raped me and it keeps me up at night cuz I just hate those memories and I just don’t know what to, and my boyfriend doesn’t know what’s going on. It’s been effecting my grades and my attitude, and he says he’s really worried, but idk if I should tell him what’s going on. I’m not sure if he could help me any.