I had almost exactly the same problem, except I built my own “S2” as well as the P60 pills in my former-EDC 501b’s. Same symptoms, though; jumping to Low & giving the occasional “Low-Battery” blink & refusing to stay in Med or High (Nanjg-105c, 2.8A old style, 3-mode).
Worse, it began to be continued more-and-more outside the datacenters, IDFs, MDFs, AC (“Mains” across the pond) closets, etc., where I work, making troubleshooting a lot more difficult.
One thing I noticed was, a fresh battery would cure it temporarily, even though the “old” battery measured 4.xx volts during the failure!!
I also noticed that violently shaking them (i.e. slamming them against my hand in frustration) made them change modes & would actually make them “work right” briefly. I thought the weak tailcap springs might be the Root Cause, so I stretched them significantly & vowed to add 2nd springs in them to strengthen them, as soon as such a spring could be found. No joy.
Insight came when I killed my pet EDC, a yellow-camo 501b, which I made a habit of turning on & tossing it to the floor to show off my handiwork (and to hasten the demise of the worthless camo paint). It survived all the throwdowns but began failing as described. Since the cheap camo flaked off just from looking at it, this led me to EDC the “S2” clone, which turned out to be easier to carry & with the 2.8A driver, just as useful on the job, especially with a Momentary-On switch. And the 21mm OP reflector & plain glass lens made the same butt-ugly Cree-rainbow beam.
I pretty-much stopped EDC-ing my 501b, when I put the 60° Optics in my “S2” clones. FWIW, I love the even colored beam and the broad flood.
But the same thing fixed both.
While installing the Optic, I took the pill out & noticed the driver board had wee cracks where the solder bridges were supposed to connect it to Frame Ground. Sure enough, the 501b pill had cracks on the solder bridges as well.
When I smeared fresh solder over the bridges, re-establishing the Frame Ground connections, the problem went away.
I’m now on a jihad to resolder all grounding points on all the lights I own, as time and need dictates.
And committing to making better ground bridges on any new pills I build!!
So far, so good…
Dim