Can you please attach your firmware so that we can review your code.
I am now fairly certain the bug is my firmware. On an oscilloscope, the chip select line has a different waveform when the glitch occurs. I will let you know when I have it fixed so this thread can be closed.
Problem solved. Thank you for entertaining my problems.