I can relate. I need to improve consistency. I have streaks where every shot is solid and I am a par machine hole after hole. And then boom.
For me the main thing I (think I) need to do is continue to entrain the swing. Simple, repeatable, over and over. In the heat of the moment if I have to think about the swing, I'm looking for trouble. And that's still where I am at. Bad habits creep or jump back in. I realize I am overlooking the mental aspect, but if I can take thinking about the swing in such detail out of things, I will take a huge source of tension off my game.
I can relate to this. For whatever reason I start thinking about not getting too flat, not coming over the top, etc. instead of just swinging, and it causes all sorts of merry hell. Misses appear on me during rounds that I just don't see during practice.