Welcome to Just Answer.
When did it first appear?
Does it disappear during sleep?
Does it increase in size on coughing, sneezing?
Did you get it checked by doctor?
There can be a few possible causes for it.
It can be hernia.
It disappears during sleep & increases in size on straining, coughing.
Another possibility is epididymal cyst.
But from your history it is likely to be hernia.
Hernia is not cancer.
Epididymal cyst is a sac like structure.
It is also not cancerous.
Yes, surgery is required, but now a days pin hole surgery is less invasive.
If there’s anything else I can do, please let me know
Surgeon can do the surgery with small cut.
You are always welcome.
If you are satisfied, please leave an excellent rating.