This is due to baro trauma.
You must consult your ent specialist
and take antibiotics, decongestant tablets and nasal drops , and mucolytics.
The most important thing is you should avoid water to enter your ears until it is confirmed that the ear drum is healthy.
You may also require steroids
for some time or drugs like betahistine
to increase the microcirculation at the inner ear
You can discuss it with your doctor.
In doubt do reply