Having decided some years ago that constant insomnia was worse than weight gain, I started having a big bowl of popcorn every night about 1/2 hour before going to sleep.
It works, it's like styrofoam pellets to fill your stomach cavity. And the popcorn has lower calories than some of the alternatives. (I don't use microwave, I use old fashioned with very little oil)
Results: I sleep much better, and I've gained 5 lbs/yr: total 30 lb weight gain!
Now I'm cycling to take off the weight, but keeping the popcorn so I can sleep.
I don't pretend this makes sense, but it works for me.