Hello,
Although, there is nothing to worry, that swelling is a mandibular Tori (A bony swelling) which is present on both sides (as visible in the picture). Sometimes, when you eat something hard, the gum over the bony swelling gets inflamed & cause pain. But still for confirmation of diagnosis, you can get the XRAy done & post the picture here.
Next Steps
Get an XRay done