My car is constantly dying on me, it has become unreliable, seems to be electrical, it run for a while, then when I stop the car it need a jump.
Take it to an auto service center and let them diagnose the problem. Expect to pay for that diagnosis.
I suspect the alternator but I’d need to know a lot more about the car for a better guess.
The alternator has been replaced as well as the battery less than 24 months ago, it’s been in the shop twice and they cannot get the engine light to go out and sensors have been replaced . Trying to find out is there any electrical history on this make and model
Doesn’t seem like too many problems, but they didn’t sell many either.
Then I’d suggest you find a better shop to work on the car.