Insufficient sun exposure is responsible for approximately 340,000 deaths annually in the United States and 480,000 deaths annually in Europe, while non-melanoma skin cancers account for 63,700 deaths worldwide. Skin cancer only occurs due to excessive exposure combined with a weakened immune system, which is really rare.
You're more likely to die in a traffic accident or from insufficient sun exposure than to ever develop skin cancer.