SPI can't write to tmc2240 after few print jobs

Interesting. I own an Octopus Pro myself and never had hardware / design issues like this.
For me the SPI config as per BIGTREETECH-OCTOPUS-V1.0/Firmware/Klipper/generic-bigtreetech-octopus-pro-v1.1.cfg at master · bigtreetech/BIGTREETECH-OCTOPUS-V1.0 · GitHub [tmc2130 ...] section works.

Just rename to 2240 or 5160 or whatever drivers you use.

It is known that sharing the same software-SPI between drivers and other equipment can lead to issues. See Multiple Devices on SPI Bus not working (TMC Steppers and Display)