Pregnant and in a LOT of pain

I am currently 12 weeks pregnant.

This morning I woke up with a killer migraine and caved by taking 2 ibuprofen. It helped take the edge off so I could go to work. The migraine picked back up by 2pm and was so severe I was about ready to leave work. I ended up taking another 2 ibuprofen to make it through my work shift

Did well after that.

Just woke up at 1am with a horrible ear infection. I am in sooooooo much pain I am crying. I have tried putting warm olive oil in my ear, using a warm compress, and sucking on some candy. Nothing is helping. I tried taking 2 Tylenol with NO. Relief.

Is it too risky to take ibuprofen again?