I think that many such problems can be solved by distributing daily calories for night snacks in order to adjust to your body. A simple set of dried fruits and vegetables that I always have at home helps me. By adjusting the amount I can eat according to how I feel, I always go to bed without that urge to eat something.