I can't tell you what is causing this, but it is something that needs to be evaluated asap.
Since you have he this for months and it is not improving, this may be serious. See your dentist or an oral surgeon. Asap. Don't wait any longer.