Cut and paste this URL to share the unmodified register and value:
https://regviz.com/r/stm32/stm32wb0/STM32WB07/SPI2/SPI2_I2SPR#0x0
SPI2_I2SPR register
I2S linear prescaler I2SDIV [7:0] = 0 or I2SDIV [7:0] = 1 are forbidden values.
Odd factor for the prescaler
Master clock output enable
https://github.com/modm-io/cmsis-svd-stm32