Why would a subaru idle fine in park but die when put in reverse or drive?
Have a shop check the torque converter clutch . This can usually be done by pulling the fuse that's labeled TCC. Good luck with it.
Search Subaru Outback Questions
Subaru Outback Experts