I have a project where I need both TWI instances as well as an SPI instance to be used with sdcard and fatfs libraries. When I try to compile I get the error: SPI1_TWI1_IRQHandler if I have SPI1_ENABLED or SPI0_TWI0_IRQHandler if I have SPI0_ENABLED. Note that this happens if I have TWI0_ENABLED and TWI1_ENABLED. If, for example, I have only TWI0_ENABLED and SPI1_ENABLED it compiles.
Note that I use TWI and SPI as master.