I can't really relate to what you're going through. I think a strict routine might help you 'manage' your life. For example, wake up, go to work, come back home, go for a run, sleep.
About your ex-girlfriend, I would just cut off communication entirely and block block block. Hopefully one day the message will get through to her that you no longer want anything to do with her.