Hmmm. I've heard that people who quit smoking can sort of substitute food, so maybe you're doing the same kind of thing. For one thing, it gives your hands and mouth something to do.
Maybe switch to some sweets that aren't as fattening and last longer, like hard candy or other junk food that isn't as bad, such as popcorn with less butter, but just a bit of sugar? Maybe you can explore the sweets that people use when dieting......
Hope that might help some!