Josh here 28.
It's okay to be sad and keep saying that to yourself.
I am a child whose parents divorced at the age of 4 I think can't remember, but things will be fine, I am completely fine, my advice though is trying to keep things civil around each other, I'm not gonna lie it's hard when I was growing up but as the child gets older and reaches a sense of maturity, he/she will understand.
Years ago id ask questions to my mum as to why they got divorced, and I got shouted at the same with my dad (wounds still sore at the time I suppose) but then years later I ask my mum and she sits down and tells me... my father, on the other hand, well he's totally different, but honestly best thing to do is just be emotionally open to yourself and your child.
in terms of you, just remember it's okay to be sad and upset and to worry about the future, I'm living in China with my girlfriend, and I'm constantly thinkings.
I have my sad days and I have my depressing days but I just let their feelings flow through me.
things will get better as time goes on, because we become stronger and more adaptable to our surroundings.
be kind to yourself invite a friend or someone over if you don't want to out and just sit and talk it's nice to do that every now any then!
hope you're okay!
best wishes
Joshua!