Hi,
The codes related to the pressure sensor have to be causing this. I'm not familiar with the engine not responding when in gear and its relation to the transmission pressure codes, but I suspect it may be a safety-related response. I've never experienced it, but I never had both pressure sensors fail.
Take a look at the pics below. They are the diagnostics for the P0840. Take a look through them and let me know if this is something you feel comfortable doing. I didn't include the P0845 because it is very similar, and I didn't want to overwhelm you.
Let me know.
Joe
See pics below.
Images (Click to make bigger)
Tuesday, November 15th, 2022 AT 7:49 PM