Add an 0 ohm series resistor, and a DNF cap to ground, everywhere that drives a signal on the SPI bus. Or at least on the CLK output.
We will then determine the optimum value to minimise ringing and maximise SPI transmission speed.
25 MHz would be nice, which is the SD card maximum. 10 MHz would be OK, which is the MCP23S17 maximum.