I am sorry to hear about your situation.
It sounds like you are going through a depression phase which can be largely expected after or during a divorce. Divorce is after all considered to be one of the major losses in someone's life. I believe that you are trying your best under the circumstances but you need help to recover. You would need a good support network around you such as friends and family and you would definitely benefit from seeing a therapist in order to help you process this change and loss in your life. From your description, I can see that you did not chose to live like this and it is hurting you to see your family broken in a way. And I can only imagine your pain. However, you need to look after yourself, since as you very well said, your situation at the moment has effects on your work. This may bring financial problems which will most likely bring more anxiety and concern and this can create a vicious circle that will be very hard to get out of.
You need the support and all the help you can get now. So I would strongly encourage you to seek therapy so you can start building yourself back.
Please feel free to share any feedback on these thoughts.