I had a chevy corsica that was doing this. I replaced the computer,and 4 of the magnetic sensors, turned out to be the
crankshaft position sensor. The old
magnetic sensors get weak and stop/start sensing. Since they are weak they become intermittent.
Mine would be fine for a week.... shut down at a stop light start right up.... or waited 15 minutes and it would go again.... next day more trouble then everything was ok for a month.

. No dealer or mechanic could figure it out.

Took me months to figure it out.
Good Luck!