TMI Pregnancy constipation..

I’m roughly around 5/6 weeks maybe a little further (period was irregular) this isn’t my first pregnancy..

Im having some serious constipation.. my stomach feels so nauseated bc I know I have to poop but I can’t.. BUT when I do, it’s diarrhea.. what is something that I can safely take to help?

The nausea is just really upsetting my stomach & I just want something to help ease both..