Cut and paste this URL to share the unmodified register and value:
https://regviz.com/r/stm32/stm32g4/STM32G473/FDCAN1/ECR#0x0
FDCAN Error Counter Register
TEC
TREC
RP
CEL
https://github.com/modm-io/cmsis-svd-stm32