Don't remember the exact BUT there is a factory setting that causes the above actions

The first moron that looked at mine was going to replace the auto transmission. Took it to a dealer that knew what he was doing, he put it on the scope. Ran a while before it showed.

Changed out the fuel pump , solved.

Same symptoms 6 months later , same problem, faulty pump. Replaced , has had another 200,000 on it ( 1\2 me ,1/2 by next owner). No issue