The air pressure in the middle ear is usually the same as the air pressure outside of the body. The eustachian tube is a connection between the middle ear and the back of the nose and upper throat that maintains this pressure.
Swallowing or yawning opens the eustachian tube and allows air to flow into or out of the middle ear, keeping the air pressure on both sides of the eardrum
equal. If the eustachian tube is blocked, the air pressure in the middle ear is different than the pressure on the outside of the eardrum.
It is possible that you are experiencing this discomfort and it actually gets better to relive the pressure.
I hope you found my response to be helpful and informative. If you have any additional concerns I would be happy to address them.