Just4, what a horrible day you had! I'm so sorry it was like that.
Is it at all possible that the hearing could be rescheduled until after you have the baby?
If not, please take some support. If you don't have anyone close that can go with you, you could try calling the DV and see if they have someone available to go with you. Or a friend, anyone you know that can just be there for moral support. A neighbour?
Maybe they would allow you to attend via Zoom? I would contact them or your lawyer first thing in the morning to ask about that.
Try to rest or nap whenever you can, don't forget to eat and hydrate (even if you don't feel like it). You can get through this, you have courage.
I hope you are feeling, at least, a bit better.