Hi,
My marriage came to an end during the pregnancy of my second child, so I know exactly how you feel about going to appointments etc and moments when baby is kicking etc. There are lots of emotions to deal with, be gentle on yourself.
It will get better and you can do this. I read up a lot about coparenting and good communication is key. I also read blogs etc on single parenting so that I could mentalling adjust for the unexpected as much as I could.
Do you have other support from friends and family?
Happy to PM if you want to
M