its the battery. this happened to me also. I removed the battery and fully charged it and all was well for 2 days. I bought a new battery and no problems since.
yes.. this was my issue. check the battery voltage. my 5 year old battery showed 12.5. charged it up and it was fine for 2 days then same issue. replaced the battery and all is well. voltage fluctuations throws all kinds of codes. when that accelerator voltage goes out of whack its going into limp mode.