The electric fuel pump is powered by a "fuel pump relay" (like a
switch); these get "tired" after some years. The result is that the fuel
flow (and engine) stops intermittently. Suggest you replace the fuel
pump relay, especially if it's old.
Other, secondary possibility is another relay called the "overvoltage
protection relay". It has a fuse on its top.