If it were me, and I'm sure it will be someday, I would replace it myself with a rebuild unit from Zf or BMW or other reputable german shop (NOT Aamaco). If the cost was way too - I would classify $4 as - I would consider a 5 spd. conversion.
There's always the possibility of getting a used unit from a low mileage car. That might be a better option. If it lasts another 165k, it's probably worth it.