You have taken the first good step
by admitting to yourself, and to us, that you have a problem, or at least believe you have a problem. I know a little about compulsive behaviors and addictions because, until 27 years ago, I had an alcohol addiction commonly called alcoholism. I am also rather compulsive and become impatient and too preoccupied with things that interest me and that I want. Right now I want a certain model of gun and cannot afford to buy it for about 6 months but I am sort of obsessing about it. Maybe I have not helped you much but it is very good that you are doing a self-examination of your behavior. I have no credentials with which to tell you why you doing this. I will say that I think perhaps you love guns and that is an escape from the more mundane and boring things in your life....like having to get up and go to work everyday. So, one suggestion I would have is to somehow channel your interest in guns someway that does not include compulsively looking to buy. Perhaps you could do more reading on the history of guns. You could somehow volunteer to work with youth or newbie adults in learning to shoot.
Also, think about other interests you might have. And, take a look at your personal relationships, if you are married or have an intimate partner are you spending enough quality time with that person. Do you have children who need more attention. Are you being too wrapped up in what you want at the expense of others. What about your goals in life? For seven years I worked a very, very boring job on a truck dock. It paid well but I hated it. I finally went back to college and got out of that laborer job. I was much, much happier for doing that. When I was working that job life was pretty miserable for me and things were not the best in the marriage at the time (we are divorced 28 years) and I had this feeling that my life was going nowhere. I was collecting coins at the time and I did with coins what you are doing with guns. Maybe you get the idea and I am getting too wordy. Hope I have given you some clues. If you believe in God then pray for guidance and help.