So I have a 95 Legacy sedan, FWD. It’s been a kind of problematic car, and the engine was replaced about 5 years ago (I assume with an old unit, but I’m not sure though because though I was in the family I wasn’t driving it then). But, it’s held up and has continued to be at least roadworthy. But recently, it’s developed an issue where the engine will just randomly die while I’m on the road. All/most of the dash indicator lights come on, but if I shift it into neutral and turn the key, it’ll come right back up. Occasionally it’ll die again almost immediately, but usually it’ll be fine for at least a while. And anecdotally, It seems to happen more frequently at lower revs such as idling at a red light (though will occasionally happen while I’m moving), and when the engine is cold - generally once I’ve driven around for a while, it’s not a problem anymore.
I haven’t taken it to a mechanic (yet), so my question is, what is/are likely the problem(s), and how pressing of a concern is it? I do think that my time with the car is almost up - I’m in my last year at school and am planning on getting rid of this car by next summer - so I’d like to avoid throwing more money at a car that I’m not going to be keeping for much longer. But that still leaves a cold Michigan winter between now and then, and I’m worried about whether it’ll make it through said winter without leaving me stranded on the side of the road when it’s 10 degrees or lower out, and I’ll have to pay even more to get it towed and fixed.