as for keeping going - the time is going to pass anyway. It can pass and you can take MJ, get into calorie deficit, and slowly but surely lose weight. Or you can fall at the next hurdle, go fuck it, and resume life as it was. Your CHOICE!! I really think its important to give ourselves agency here. We might be driven by entrenched bad habits but we are not blobs of meat floating through life. We can engage the brain, interject, make different choices.
If you are getting urges to eat cake, go back to old ways etc. try sitting with those feelings. When you get those feelings, pause for a moment. Maybe close your eyes. Breathe deeply. Sit with those feelings. Don't feed your feelings, just sit with them. Know they are transient and will pass.
Know everytime you get those urges its like pavlov's dog. The bell will ring, you will salivate. But every single time you don't respond with food you are slowly rewiring neural pathways, and slowly undoing the damage of the past.
We are all pavlovs dog, but we don't have to be driven by our feelings. Remember feelings come and go. They are not permanent. We need to remember when the bell rings, when we salivate, we don't have to eat - we can make other choices.
What is the point of taking MH, losing weight, if we aren't also working hard at shaking off & challenging the old destructive habits when they present themselves to us? Think of it as training.