Congrats on your 5 months of freedom! Keep in mind, even though 5 months is a long time from when you first quit; it's still early days when compared to the rest of your smoke-free life. The links in your brain between what's always triggered you to smoke are still there and still pretty strong, even though you don't sense them daily. When certain situations occur they will surface almost immediately which is why you'll often hear people say: "We must always stay on guard for those sudden triggers - never get complacent!"
It will be a very slow process. As it is for us all but, gradually that link in our brains between grabbing a smoke to ease sudden stressful situations will fade away. It's merely a matter of rinse & repeat! Stay with the program and you'll get there too; I promise you that.