Enas:
I dont know how much it will help, but you could try to find some passion, other than food, in order to occupy your mind with it. There are lots of things that might fascinate you! Anything science related. Of course it is a little weird to try to find a passion to serve as a distraction, without some other utilitarian context (like if someone is interested in.. Idk, physics, because they know it will be usefull for one project of theirs) but a good starting point, i think, would be Art and philosophy!
There is merit to the general idea. Any time you quit a habit, it's good to swap it with something else.
OP is bed bound, so the options are limited. But now would be a good time to throw yourself into hobbies or even pick up new ones.