BMI is useful for screening purposes but on an individual basis it's meaningless as a predictor of all-cause mortality. What really matters is body composition, or more specifically amount of visceral fat (subcutaneous fat doesn't matter nearly as much).
https://my.clevelandclinic.org/health/diseases/24147-viscera...