The STM32 MCUs contain a feature called debug freeze. You can stop several peripherals, including the watchdog.
Check register DBGMCU_APB4FZ1 for this!
Otherwise, the IWDG can not be stopped, What you can do is change the prescaler to maximum so the watchdog is counting slowly, but it won't reset the MCU unless you didn't refresh it before the timeout.
>>based on certain event
Is this event related to some low power modes?