I would be a-ok making bets related to peoples' life expectancy illegal. There's no societal good from such a bet, and a lot of potential harm.
Aren't tontines already illegal? Is a bet on other people's deaths structurally very different than those?
PredictIt even used to have markets on, like, which SCOTUS justice would be the next to leave. People got paid when RBG died. That literally would've been this, if it weren't for the fact that the small investment limit kept the returns low. Realistically I don't think anybody was going to be committing assassinations just to make a thousand bucks.
The same things that keep prediction markets inaccurate keep them from causing bigger problems.
[0]https://en.wikipedia.org/wiki/Assassination_market