Was I insecure in my past relationship and was it all in my head?

In my past relationship I was called insecure, and I still think to myself if I it was all in my head. Three days in the relationship I caught my girlfriend in a lie, I was told she was in savannah with her family come to find out she was still in Atlanta. She told me that her ex-boyfriend was blocked, again she still talked to him via text and followed him on instagram also watching is ig live. when mad she told me I sucked as a boyfriend and that her ex-boyfriend was a better man than me. Also I was told by her that all the things I do for her are little and mean nothing to her. She broke up with after I Received a letter in my mailbox with her ex-boyfriend name on it. I was upset and asked her why is this in my mailbox. She called me a cry baby and insecure clown. It’s been a week and thinking about it was I insecure and all of this was in my head? I’m not perfect and I know I have things to work on however I never treated her horrible and I did what I could for her while she was in jail and when she was depressed

Was I insecure in my past relationship and was it all in my head?
Post Opinion