It'd actually be quite easy to set certain sane limits on gambling like you can't gamble more than 1% of your annual income per year, but I bet gambling platforms would fight that like the plague because those are their whales, the true addicts.
Just for illustration -- when I worked at Zynga they'd sell in-game purchases for over $10k USD for virtual items because there were people who just couldn't help themselves, and those "whales" were actually the bulk of the profit of the company.
That's why these platforms should have mandatory sane limits that can only be exempted with special circumstances.
If the maximum you could spend gambling each day was $20 across all online platforms, you'd not really have an issue.
I don't think this is a fair comparison, because it is much easier to tie losing all your money to gambling than it is to tie your health issues to twinkies. For one, it isn't just twinkies, it is a bunch of different foods, and the consequences are temporally separated from the action; you don't eat a twinkie and immediately notice you are bigger and less healthy. Your heart attack will come years down the line, and there was no one action you took that you can regret, so the feeling is not the same. Gambling is very easy to feel the pain, you lose a bet and you lose the money, immediately.