It sounds like you're working with a vehicle that was attacked by a not-proficient do-it-yourselfer. As such, there's no easy way to figure out what might be messed up, but I can share at least one comment of value.
The Engine Computer can detect over 2,000 defects and set diagnostic fault codes for each of them. There can be over a dozen codes for just one sensor, for example, and they mean very different things. The important point to be aware of is of all those codes, only those things that could potentially have an adverse effect on emissions are the codes that turn on the Check Engine light. About half of the codes do not turn that light on, so you need to read and record the codes regardless if the light is on or not.
The people at many auto parts stores will read the codes for you for free. Once you know them, you can go here to see the definitions:
https://www.2carpros.com/trouble_codes/obd2/p0400
or I can interpret them for you. That said, I did see you had the codes read already, so I'm going to have to think about this a while. You might consider attaching a fuel pressure gauge and hooking it to the radio antenna or under a wiper arm so you can see what happens when the problem acts up. Part of what you described can be caused by a plugged strainer, or screen on the pick-up assembly on the fuel pump. It will cause problems when the largest volume of fuel is being pumped, . . . which is during coasting.
Thursday, March 14th, 2019 AT 12:41 AM