PVC hole repair in tight space
The correct way to repair a damaged PVC pipe is of course to cleanly cut away the damaged portion and use a coupler. But, because this is a drain pipe and thus isn't pressurized, you could probably get away with just using epoxy to repair the holes.

Buy a PVC-suitable epoxy that's listed for use with water (e.g., J-B Weld makes a product called Waterweld), follow the directions, and liberally apply it to plug the holes. Clean off all the burrs from the holes first, to ensure a good bond. Make sure to give it plenty of time to dry before using your washing machine.