It's not so simple. Long and short telomeres can lead to cancer.
Short telomeres or their loss can lead to genome rearrangements and other chromosomal problems. This can set the stage for oncogenesis.
Long telomeres can allow cells to continue to divide many times. This also can lead to an accumulation of oncogenic drivers. https://www.nejm.org/doi/full/10.1056/NEJMoa2300503
As with many things in biology, maintaining balance is important. Many factors are at play. The message that longer telomeres are better is beguiling, but nature would not make such a simple mistake.