That's awesome personal insight. My next door neighbors are childhood psychologists and when my daughter was 18 months old I mentioned I was trying to be very intentional about creating secure attachment and the things I was doing to facilitate it. They said in a very supportive and amused tone "oh it's too late, the attachment window has closed by now" then after a long pause said "she is fine and clearly has secure attachment to you and her mom"
By I myself have done a lot of work to understand ways to shift attachment styles similar to yours.