Hello Friend, Good that you are seeking a help here. Proper and sound Sleep is very essential for both physical and mental health. You are right, relationships issues cause emotional disturbance which in turn affects your sleep.
So it's better to address the root cause than the symptoms.
Consult a counselling psychologists to discuss your relationship issues in detail to explore suitables solutions to handle and manage it better and control your emotions.
Next Steps
Don't hesitate to consult a counselling psychologist directly or online. Reach me online through Practo for further detailed evaluation and suitable solutions recommendation. Be confident. You will be alright soon.