I am sorry to learn of your current marital difficulties, and yes, I do think your dream is related. In your dream the earth is melting. Do you think this is a metaphor for feeling like the ground is being pulled out from under you? Naturally, you are worried about your safety and the safety of your child as you face an uncertain future. In the dream you act out this anxiety by trying to climb up, ever higher, to "stay afloat". First you climb on top of the house, and then into the trees.
We all know that it is not easy to be a single mother. Have you and your husband visited a marriage counselor yet? If not, I strongly encourage you to -- perhaps individually at first, and then together. A marriage counselor can help you examine problems from an objective viewpoint, and will also offer guidance about managing your child's emotions during this delicate period.
Does this interpretation make sense to you?