Your analogy is sound but your conclusion is not. There are many home owners that live by the shore that can’t purchase flood insurance from any provider. Similarly with life insurance, if I die engaging in certain risky behavior, it voids my insurance policy.
The purpose of insurance is to socialize losses. But if a few participants in the insurance pool engage in outsized risky behavior, that’s not fair to the rest of the pool that chose significantly less risky decisions.