Ethernet connection closes connection after some barcode scanner inputs

This sounds like a hardware problem (at least if it really correlates with read barcodes). Please post a wiring diagram that shows all connections including power supply.