Loneliness feeling ?

Hi coach and thanks for reading my question.
As I am working on my buffering with nicotine, I can see that most of the time, I smoke because I have the feeling of loneliness. As I make the model, I realise it comes because I have the thought that I can not really connect with people because I will always disappoint them, I will always fail in the relationship, I am not lovable enough. Even if I know I have a good heart, it is maybe never enough or never suitable, I will always make mistakes or they will betray me.
It is so big for me to handle, realizing that I have those thoughts, I don’t really know how to change that, it comes from so far away, maybe all my life I have buffered with this feeling.
Can you help me with that?