E.g. I know many people who go through bouts of intense fitness or diet fixations, take a lot of well-deserved pride in their discipline, and then hit a major event that temporarily precludes the fixation. They really struggle to get back on the train.
One major factor, IMO, is that they’re daunted by the intensity of what they achieved before. Obviously in fitness there’s a physical component to this, but there’s a significant mental component as well — especially outside of fitness.
Basically all I’m saying is you can (and should) gradually and deliberately dial up your sense of self-efficacy when it inevitably crosses some local minimum due to events outside of your control. You ought to build a self-image that’s robust to occasional and sometimes significant failures.