Maybe pregnant and want a test for stds

Patient: I think i maybe pregnant but just found out my partner has been cheating on me i would like a test done for any stds and i was wondering if i can have an internal if i am pregnant and does it come with any risks of losing my baby worried sick about this can u help me please

Doctor: