Kindly refer to the following link(s):
How to end a Haram relationship?
I want to end haram relationship but I might end up in jail if she commits suicide
Making dua to marry a person I was in Haram relationship with
Can a boy & a girl be in a pre marital relationship but in a halal manner?
Depressed and heartbroken due to haram relationship ending
How to end a Haram relationship when he’s blackmailing me with pictures?
Is friendship between a man and woman allowed in Islam or not?
The relationships between the genders
Is having a boyfriend or girlfriend permissible in Islam?