Cut and paste this URL to share the unmodified register and value:
https://regviz.com/r/stm32/stm32g0/STM32G041/FLASH/ECCR2#0x0
Flash ECC register 2
ECC fail address
ECC fail for Corrected ECC Error or Double ECC Error in info block
ECC correction interrupt enable
ECC correction
ECC detection
https://github.com/modm-io/cmsis-svd-stm32