Hello Friend, Good that you are seeking a help here. I can understand your suitation. More you try to forget him, you will increase your memory and thoughts about him.
You need to learn the trick of accepting him with reality.
Take a professional counselling help to discuss your problem in detail and understand the possible solutions to overcome this feeling.
Next Steps
Feel free to reach out to me online through Practo app chat for further evaluation and recommendation. Be positive. You will be alright soon.