Cut and paste this URL to share the unmodified register and value:
https://regviz.com/r/stm32/stm32f7/STM32F722/OTG_FS_DEVICE/OTG_FS_DIEPTSIZ2#0x0
device endpoint-2 transfer size register
Transfer size
Packet count
Multi count
https://github.com/modm-io/cmsis-svd-stm32