When I see a large jackpot, technique helps: I remind myself that the odds of hitting it are negligible, and that the jackpot is just marketing. I set a session limit and don't exceed it, regardless of the jackpot. It's also helpful to look at the slot's RTP—if the jackpot is progressive, the RTP may be lower. For example, the site
https://abigcandyplay.net/ displays the jackpot percentage. Discipline is the only salvation.