Official name is 'Phototransistor side looker (looking) package'
I would measure exact package dimensions plus pin width (measured from center pin to center pin) with a digital caliper and then try to match one up with same physical dimensions and supports IR.
List of phototransistor side looking package -
Rs Components (free shipping - no minimum order amount)
http://bit.ly/2kOG95BElement14 -
http://bit.ly/2klZTRlOrdering from Rs Components is cheap, probably worth to get at least 2 different brands to try. maybe honeywell or osram. Check acceptable angle, it should be something sensible and not too wide. Maybe 50 degrees or lower
Edit - You will probably need to get a matching pair, so grab a IR LED (emitter) side looking package as well. Same brand / operating specs.
Note - Only if your certain that the fault is with the optical sensor. There could be issues on other parts of the board / cable.