Cut and paste this URL to share the unmodified register and value:
https://regviz.com/r/stm32/stm32l5/STM32L552/FDCAN1/FDCAN_ECR#0x0
FDCAN Error Counter Register
Transmit Error Counter
Receive Error Counter
Receive Error Passive
AN Error Logging
https://github.com/modm-io/cmsis-svd-stm32