This behavior is like a habit because we act without being consciously aware. Being a creature of habit is essentially being someone who is averse to change. Yet change is necessary if we are going to increase our consciousness. We cannot coast through life or hide behind "business as usual." Often others will call such behavior to our attention, but it is still hard to bring it into the light, so to speak.
We have to learn to be mindful of our thoughts and feelings because these are the geneses of our experiences. We cannot afford to pretend that our mechanical ways of dealing with life are harmless. It keeps us asleep, and it is imperative that we wake up.
Are you miserable? Wallowing in that misery, rehearsing all the things that brought those experiences to you will only bring more of the same. Be mindful. Examine your choices. Accept that change will not happen overnight. It will take as much time and energy to change your habits as it took to create them.