I recall a 90's Caddy we had sold at the junkyard as a repairable had a weird issue ,the engine would cut out or stall intermittently just cruising along,but the symptom could be induced by rolling down a power window or turning the headlamps on..usually the engine just stumbled and coughed and recovered and you could drive normally,but once in a while it'd just quit like you shut it off...
The former owner was so sick of getting it towed,he junked it!..
The customer who bought it was an experienced body man and had built and fixed cars a long time,but wasn't very "up" on newer cars with computers and EFI,he knew the common problems,but hadn't encountered one like this before..
He began swapping parts--tried another distributor,ECM,and that didn't change a thing..the problem seemed to vanish for awhile after each part was replaced and he thought it was fixed,then it'd act up again..sometimes it was days or a week before it acted up again..
One day a guy who works at a Chevy dealership (service manager) he spoke with said to inspect all the grounds for the ECM and other under dash wires,that usually are hooked to a bus bar type junction block on the passenger side foot well area...said they often corrode there badly..
He found all the wires were gangrene ,so was the junction block--he cut all the wires and stripped them back to good copper,and ground the paint off the inner kick panel and put all the wires on one large ring terminal and crimped and soldered them,and used a sheet metal screw and a star washer to the kick panel metal to ground them a few inches above the old junction block..
All the factory ground straps looked good and none were missing either,on the engine to body,transmission,etc..car was never molested,it was an elderly owner who originally had it..you could tell it was well maintained ,probably by a dealer..
The car ran great for about a week,but one day the guys wife had it and said when she turned on the A/C the engine felt like it stalled for a second,then came back to life..
He inspected all the wiring to the ECM and did find some that had either been "probed" with a test light,or scotchlocks were used to maybe install a car alarm (it had no evidence of one though)--or a rodent gnawed on the insulation,but none were broken completely,or had strands missing or corroded,so he just taped them up...
The car didn't act up again for a few weeks,then one day it died when he stepped on the brakes..he was able to get it to start again OK,but feared it'd keep doing it so he drove it home and parked it..
He added a separate ground wire right from the battery negative to the alternator case, and another wire to the ECM case and the car didn't act up again as long as he owned it,which was only a few months,he decided to get rid of it in case it started doing it again..
Electrical problems suck...they can defy the best troubleshooters and computer scanners when they are intermittent and dont eff up long enough to pinpoint the failing part..