Hi and welcome to 2CarPros. With the code you have you need to check fuse #22 in the engine compartment. If the fuse is good.then remove the engine control module connector and with key on engine off at pin #55 pink wire with light blue stripe check for battery voltage if voltage is present, wiggle the engine harness around to see if voltage drops off. If it does then you have a wiring issue. If it doesn't then the PCM has an internal fault.
I attached some images and highlighted the pin location and fuse location. You may have other issues bit the PCM issue needs to be addressed first. If the keep alive memory loses voltage it is acting as if you disconnected the battery. When the battery is disconnected then the memory resets and a drive cycle needs to be performed to relearn the values programmed. With it resetting all the time the computer gets confused.
In my experience, and since the fuse is shared with the A/C and you have not mentioned no A/C issues, the PCM is most likely bad. Let us know what you find with the diagrams and links posted.
https://www.2carpros.com/articles/how-to-check-wiring
Images (Click to make bigger)
SPONSORED LINKS
Monday, August 12th, 2019 AT 10:28 PM