Commitment to myself

When it comes to weight loss, my issue is that I struggle keeping a promise to myself. If I plan my food ahead of time and I feel 100% determined, regardless of how limited or generous my choices are, I always go off the protocol. I tried to do thought download. I’m able to identify the feeling which is “deceived”, “ambushed”, “attacked”, as if an external force outside of my control makes me overeat or eat food that I didn’t plan for. Of course, I understand that there is a thought generated by my brain and there is no outside force but I’m struggling to identify it. Perhaps I’m not the only one. Maybe you can share similar models or give me a tip on how to dig further. TIA.