Both of those, and disable all onboard devices you arewnt using:
onboard video, extra SATA controller(s), audio, unused network/com ports, etc. Nothing unnecessary for mining.
Sounds like the system devices are taking up the lanes.
Yeah on the 170 boards if you use a m2sata for the os it will use a lane and you can't go past four cards.
This true of the biostar z170