Animation based on formula stuck

If I set up an animation based on a formula of a broadcast event, it sometimes gets stuck after a while (after some hours, maybe even faster).

Some details:

My formula is $if(br(niagara-launcher, screen)=0, 0, 1)$. This fades in a blurred background so when I move away from Niagara Launcher's favorites screen the background gets blurred. It works for some time, but then the animation doesn't happen any more and the layer stays visible all the time.

I added a textbox and set its content to the broadcasted variable ($br(niagara-launcher, screen)$) to see if the value gets updated, and it works correctly.

I disabled battery optimization for both KLWP and Niagara Launcher.