Can't stop crying

Just found out my husband has been cheating and I've been extremely sad and crying constantly the last couple of days I'm 23 weeks pregnant can this hurt my baby? 
Edit: I don't know if you ladies can see when I edit but I just want to thank you for your kind words!