I can understand your pain. Break ups are very painful and difficult. Should you contact her- can only be answered if I know what really went wrong. There's no harm in contacting her if things ended on a peaceful note. If not, pause, calm yourself down and introspect. Even if you want to get back immediately, your partner may not want that. Your efforts will also go in vain and it will give you more anxiety and you will feel helpless if she says she doesn't want to get back ever. She might need space at the moment.
Next Steps
You should introspect. Calm yourself down and think about what went wrong from your side also. And if there's some sort of pattern in the relationship, try to break that pattern. Do not behave in the same ways.
Health Tips
I know it is easier said than done but do not let it affect your professional life and your relationship with others, otherwise you'll be resentful towards her later on. You can also consider taking therapy.
Only when a professional knows you and your problems inside out, they will be help you. Answers like these aren't of much help if a person doesn't know the situation entirely.