The best way to stop bad habits is to try not to stop them all at once. You want to acknowledge the bad habit and find the things that trigger you to do that habit. Why do I do this habit, what makes me do this habit, what feelings to I feel before and after I do this habit? Starting off with acknowledging it helps you comprehend the habit itself. Other will tell you to try to refrain from doing the habit all at once but you need to understand what makes you do it in the first place. Then you can slowly try to distract your brain when you feel like you want to do that habit. If you do it multiple times a day, try to limit yourself and say “I usually do this thing 10 times a day, I will only do it 8 times a day”. And if you do that habit that number of times that you set, distract your brain and start to either read, draw, lay down and listen to music, meditate, go for a run or make a snack. You’ll soon realize that after you acknowledge that habit and slowly start to stop and distract yourself, you’ll find yourself not having the feeling to want to do it anymore. it’s all about steps, and not trying to stop completely all at once. I hope the best for you, I promise things will get easier.