@djm search AliExpress for "light curtain sensor". thousands of options to pick from.
under the hood it's literally just a bunch of IR laser diodes on one side and a series of phototransistors in a parallel open-collector configuration on the other side, so there's not a lot to go wrong and buying unbranded is generally fine outside of a commercial context.