Thanks for your query.Based on the facts that you have posted it appears that you have a band of adhesion between glans penis
and frenulum of foreskin which is getting injured during vigorous masturbation
Please consult qualified General Surgeon
for clinical examination .You may need to get it excised under local anesthesia
Do not worry this is not a cancer of the penis.