Dude trust me i feel you. My diet is literally perfect from 7 a.m. to midnight. Those six hours in the middle of the night mess me up so bad. My cravings in the middle of the night are just awful. I am an opioid addict ten years clean so i know addiction. Addiction to sugar feels very real. The one thing I've learned is that if you can just get a few days without sugar under your belt it gets incrementaly better fast.
Im really good at eating the food that i need during the day to build muscle. Im not as good at saying no to junk food in the middle of the night.
Try a shot of apple cider vinegar at night, helped curb my late night sugar cravings