the 165mm is the only length that matters for fitting it to your frame. the smaller number is the amount of travel available to that shock.
like the above poster said, it will reduce the amount of total rear end travel available to you. i'm not sure why you'd want to do this...a 165x42.5mm shock is easy enough to find.