Pain medication?

I'm 8 weeks pregnant and i was told i can't take certain pain medication but yesterday I randomly got this really bad headache and it won't go away even after sleeping and eating Idk what to do what pain medication can I take? Sorry FTM here yall