I ran into this issue when swapping a 2002 EJ251 from an outback with auto trans into a 2001 Outback with manual trans. Don't know if the auto/manual is the issue or if it's a year thing. Intake was different too. . idle air was managed differently.
In my case, cam and crank sprockets were different.