Either fuel pump or electrical
When motor starts dying if its slow then I'm thinking fuel, if it's fast like the key turns off then electrical
Motor is
10243880...350...95-00...2 or 4...Vortec truck, Gen.I crate motors and "ZZ4", roller cam, one piece rear seal