A sweet snack can be something you enjoy, a familiar ritual, or the quickest thing available when you're hungry and tired. Those are different situations. It helps to ask what you're looking for before making a rule about what you should eat.
If a pattern bothers you, notice when it happens and what came before. Had you skipped a meal? Were you looking for a pleasant pause? One experiment might be making a usual meal easier to get to, or taking a real break and deciding afterward what you want.
This page isn't a diet plan. Food doesn't need a moral score, and nobody should change a medical or nutrition plan because of a wellness metaphor.