Unfortunately, it is very difficult to diagnose soft tissue growths/lesions over the internet. You describe noticing a "bean size lump" on your lingual frenulum. However, the morphology of the frenulum can vary. I can easily testify that many of my patients present with similar bean-sized lumps, while others do not.
The more pressing matter is that you are having pain/sensitivity
and by you mentioning lingual frenulum, I'm assuming specifically on that lump when you drink sodas. That is certainly not normal and warrants a closer look by your dentist
Ulcers typically will have some redness in the middle surrounded by slightly raised tissue and are fairly well circumscribed. They are usually rather painful when touched. Again, without the opportunity to see it clinically, it is impossible for me to formulate a diagnosis
You smoking a pack of cigarettes a day does put you at a much higher risk for developing oral cancer
. And as such, I would strongly advise you to schedule an appointment with the dentist or oral surgeon for a comprehensive evaluation. In the event that what you describe is cancerous, the sooner you address it, the better off your prognosis will be. Oral cancers are quite manageable when caught early. They become deadly when patients continue to ignore them.
I had a patient 5 years ago that came into my office. He had been smoking since he was 17 (he was in his 50s). He presented with a golf ball-sized growth underneath his tongue and I asked why it took him this long to come see a dentist. His explanation was that he wasn't having any pain so he just ignored it. And the reason he even bothered coming in was because the floor of the mouth had ripped open and is finally causing him pain/irritation. The oral surgeons ended up removing 2/3 of his tongue, pulled out all his remaining teeth in anticipation of radiation therapy. But unfortunately, he loss his battle to cancer shortly.
I applaud you for having the awareness that your smoking habit gives us cause for concern. I hope that the irritation is nothing serious but I would also hope that you may consider quitting smoking after this experience.
Please see your dentist or oral surgeon ASAP for a comprehensive evaluation.