I'm probably overreacting....i hope so.

I've been having really bad tooth pain. I'm 5 weeks btw. I have nothing safe to take at home so I figured midol would be safe to take. But I forgot about the caffeine it contains and now I'm worried I caused my baby harm. Any thoughts?