Node-Red Issues

Hello everybody. I’m using node-red for some automations, but I’m having issues with it.
Sometimes the automation deploys, sometimes it won’t, without explanation. One example, I have some AC’s using remote IR controller with ESP8266 and Lolin IR Shield, running TasmoIRHVAC. Within lovelace, I get 98% of the times my AC’s running or disconnecting just fine. But with node-red automation, they fail half the attempts. Within HA automation, I don’t know, because it was easiest for me to use a graphical way to make automations. Another one, with a Shelly 1 relay turning on and off a water pump, sometimes it won’t turn on, sometimes it won’t turn off. But the same automation (changed to HA automation) in HA runs everytime.
Why?
How can I turn node-red more reliable?