Hello Friend, Good that you are seeking a help. Looks like still you have the deep rooted memories about your past relationship in your sub conscious mind and that is manifesting as dreams at times. Better to consult consult at psychologist to understand this problem and suitable techniques to slowly remove such memories.
Next Steps
Feel free to reach out to me online through Practo app for a detailed discussion and suitable recommendations.