The X520 are PCIe 2.0; so of course they need 4 lanes for full bandwidth. X710 is PCIe 3.0 but the specs clearly say it's an x4 card, so again: of course you'll get lower bandwidth.
However, usually you get at least 4 lanes to a PCIe slot; 2 lanes are usually more a thing for crippled M.2 slots...