Attachment theory explains this through four styles, but the two most commonly linked to addiction are anxious and avoidant.
The Hidden Link Between Unmet Attachment Needs and Addiction in Women

Attachment theory explains this through four styles, but the two most commonly linked to addiction are anxious and avoidant.