Figure out what you are going to reasonably be able to do, and talk to your boss about planning for that. According to the law, your employer must make certain allowances for any medical condition, although pregnancy itself is NOT a disability. Get any approvals for absences signed on paper well in advance- print them out, and send a photo to your boss so you have an online record with date and time stamp.
If you need to job, stay. If you don't, you should consider whether the stress is really worth it. Stress affects your baby, and you could probably get the same pay if you were babysitting.