My betta had a tumor just like that. He seemed fine, but it got so big and started to appear in other parts of his body, even his head. I knew it was hurting him so I put him down.
If your bettas tumor doesn't spread you could try removing it like candgmancan said.
45 gal. freshwater and 10 gal. female betta tanks