My 1995 Chev Silverado truck 6.5L. Starts up, idles, but cuts out as you accelerates with smoke.

As SOON as the "Check Engine" light comes on, it's smooth as silk. Drives down the road and accelerates to full rpms with no problem at all.

As soon as I stop- shut the engine off. Restart- the check engine light is off and it won't accelerate without cutting out and smoke. Sometimes in a few seconds the check engine light comes back on and the truck runs great, but every time I shut the engine off it does the same thing.

What would you do yo fix this?

250k miles. Don't know if the injection pump has been replaced. I replaced the lift pump and some other items.

Any input is much appreciated. Thanks in advance.