I have issues with late night snacking, and I find gum quells this a bit, dunno if it’s cheating though
The chewing/salivating can stimulate an insulin response in some people and it does have calories.
Try one piece and see how it affects you.
For me the best solution to late night snacking is to simply give it up and go to bed.