Brilliant article where Gabor Mate, Specialist addicioin dr refers to addiction as not a disease/ disorder nor an addictive personality, but rather a response to loss/ trauma usually in childhood.
Compulsive behaviours are damaging in the long term, but "solve" the problem temporarily. What I mean by this is that it makes the current situation more bearable. So using is an attempt to find happiness....

So finding healthier ways to find happiness and resolving childhood trauma must be part of the solution.

https://www.theguardian.com/lifeandstyle/2018/nov/24/joanna-moorhead-gabriel-mate-trauma-addiction-treat