Another explanation is that you are suffering from low level toothache which is not enough to get through to the conscious mind but which trickles through into your dreams.
There is even further evidence of the troubles caused by toothache in the Ebers papyrus which is a text written between 1700 and 1500 BC by the people of ancient Egypt.
Ibuprofen is commonly used to treat mild to moderate aches and pains such as headache, toothache, period pain, and sports injuries like sprains and strains.