A function of any addiction is to enable the person not to have to experience something they regard as difficult.
A way forward can be to go to a therapist. In my branch of psychotherapy, Gestalt, a point is to develop awareness - most people function without.
Ivor