This sounds like a couple possible things and if this all started to get worse after the cable replacement then we need to start with checking the fuel pressure when this happens.
https://www.2carpros.com/articles/how-to-check-fuel-system-pressure-and-regulator
If the fuel pump is only getting a portion of the 12 volts that it needs then it may not be supplying proper voltage.
However, I would expect this to cause the engine to not start but it could have just enough fuel to start the engine, run poorly, and then shut off just like you are seeing.
Here is a guide that will help with causes of stalling at idle as this may start to shed some light on this as well:
https://www.2carpros.com/articles/stall-at-idle
The fact that this happened prior, even not as dramatic, I doubt it is related to this but let's start with this stuff and see what turns up, then we can decide where to go from there.
Thanks
SPONSORED LINKS
Friday, June 25th, 2021 AT 6:04 PM