Hi
It's may be the effect of your Relationship issues. It will take some time to heal. Motivate yourself and try to forget your past relationship issues. I know it's hard to forget suddenly. You just need to try improve yourself in better ways. Normally people need to sleep 7 or 8 hours per day. You can try some Relaxation techniques, try Mindfulness meditation. It will help to bring you in the present.
Next Steps
Psychotherapy and Mindfulness meditation
Health Tips
if you need more you can consult with a Psychologist. nine double zero three two eight double three four two.