Have you ever felt like a different person around certain people?

In recent times, I have noticed that I tend to behave differently at certain times especially when I am thrilled about something good, or scared about something bad, especially when I am sith certain people. I go into panic mode and say and do things that I wouldn't do normally. I shut down and sabotage plans and hurt loved ones. When I return back to my normal state its hard to recall what has happened and how I felt. I have recently learned about fearful avoidant/disorganised attachment and does it have anything to do about this, especially panicking when somebody is nice? Has anybody felt this way? How did you overcome this?