What platform version are you on?
is this is a new wrinkle that starting happening in a previously working (established) 16/17 setup, or is this all a new 16/17 setup?
Perhaps not directly releated, but I'd encourage you to consider using Jeff's very excellent Zooz relay driver for the 16/17.