Violation of the quantum null-energy condition in a holographic wormhole and infrared effects