pregnant and in pain

I'm 4 and a half weeks pregnant and I'm in constant pain. it's on my left side just below my underwear line. my doctor told me it could be ectopic. I'm paniking. I don't know what to do. all I have to do is stand and there's a sharp pain. it doubles me over. I don't know what to do :(