Studying and pregnant

I really want to complete my degree but I am really really struggling. I feel overwhelmed daily and just cry myself to sleep (pregnancy hormones maybe). Today, I had a major assessment that I thought I did my best in but the feedbacks I received from the lecturers and my peers showed that my best wasn’t good enough for them. I have been crying since 5pm until now 11pm. I really want to pass that assessment. I really want to do this. I don’t want to drop out... sometimes I struggle to remember something just at the moment when I need to remember it. My course is really challenging but I really wish I can complete it. My mind is willing but I’m just overwhelmed. Has anyone been pregnant and in uni? How did you manage to do it?