How to solve Windows PCIe network latency

When I installed a new PCIe network card into my gaming PC I was surprised by suddenly lagging mouse input (via network, it’s a headless machine)…