Extremely bad anxiety

For the last two weeks my anxiety has flared up to extreme conditions and honestly don’t know what to do. I’m 34 weeks and worried I’m stressing my baby at this point. I had a work incident that was all my fault and it’s all I can think of lately. The work thing is over and done with, consequences and all. I just got a warning... anyway don’t want to discuss that. I just can’t stop thinking about what I could’ve done differently or just think of anything else. Just really want to cry all the time. I literally can’t even sleep for hours because I just stare at the wall and think about how stupid I was. Just need something to take my mind off or just idk. Make this go away.