Thanks for asking the query,
Could be due to infection.
Get a complete mouth examination and evaluation done by the Dentist
is due to the antibiotics and analgesics prescribed to you.
Take an antacid
along with the medications.
Take sound sleep avoid anxiety
Also consult to a Physician and get the complete checkup done.