I've fixed the bug. It works now! The reason that caused the functions didn't work is that the IWDG INT in stm32h5xx_it.c was commented.
stm32h5xx_it.c