It is most probably a trauma from occlusion , please tell your doctor to check the occlusion and if needed grind it a little bit for relief. The medicines written above are antibiotics it will reduce the infection but ask your doctor to prescribe an analgesic for pain relief if it is too much.
Next Steps
Do not put pressure on that side while bitting