That's great that you looked back and realized where your weak points have been in the past. This knowledge can prove to be a life savor now that you know about it.
I also found the same pattern with my using. I would make it through the hard stuff and then my old habit of "rewarding" myself for making it through the hard days kicked back in.
It is a huge step forward in recovery to be at a point where you can look back, be honest with yourself, and point out triggers and patterns. Take what you learned and move forward
We can do this!