It's affecting my career and my productivity.
How did you handle such a situation? Any resources or books that helped you?
I don't expect it to overcome over night, but at least I want to be in control that my work isn't affected.
P.S: Not sure if HN is the right place to post this, but I felt there might be people who have been through the same.
Endeavor to keep yourself busy and therefore distracted. Time will do the rest.
Once the initial intense emotions fade, you'll be able to reflect and move on, but getting there is key. If you dwell on your current emotions, it'll be tougher to move forward.
...And it's not recommended to make large decisions without waiting a few days during these times of turmoil, to avoid rash or overly emotional actions.