Please help

Okay so I broke up with my ex like 8 months ago and we only dated for 5 months,

I keep having bad dreams about him

Like in my dream he would harass me and hurt me.

(He never has in real life)

so I’m having really bad nights and throughout the day at work i get really tired .

Any help?