Attachment theory is based on research about the importance of a child’s early relationships with their caregivers to form the basis for emotional wellbeing and healthy social relationships. If early connections were shaky, you may struggle later on.
Understanding your pattern is one thing but changing it can be quite another. You may think you are broken. Rest assured, even people who survived the worst or have done things they feel deep shame about can and do turn things around.