The problem in the proof is that $\operatorname{pd}_R(R/I)$ might be infinite, so you can't apply Auslander-Buchsbaum the final time.

I can't seem to come up with an example where $M$ has finite projective dimension while $\operatorname{ann} M$ has infinite projective dimension, but they must exist.