Could it be the gas you buy? We have a Murphy station that opened here a few years ago.* Cheapest gas in town. My car died twice, oddly enough heading to their pumps. Car was fairly new and so was the gas station. After only filling up twice there, I went across the street to the old reliable Shell station and only bought my gas there. Never had another problem since.
Do some research and find out which wire bundles do what (fuel injection, ignition, etc ). Start engine and let it warm up. Move bundles slightly at various places while it’s running. Stay clear of hot spots, fans, and coil wires.
Run through any high puddles lately? Are squirrels in the area?
* Was always told that it’s always the best gas at a new station. The pumps are newly calibrated and water build up has been purged and isn’t in the tanks. Not in this case.
Good advice. I use a wooden broom handle to avoid shocks or burns.
One time I tapped an unknown sensor at the top of the engine and the engine immediately died. I took the car in to a mechanic and told him, "change that thing. It's defective."
I also have had crankcase sensors fail on two different vehicles. The engine would die while the car was moving. After a few minutes, the car would start right up. Very inconvenient.