Blynk-ws nodes stuck after wifi reconnects on raspberry pi

My system hardware/software:
Node-RED version: v2.2.2 running on a RPi 2B.
Node.js version: v14.19.3
Blynk legacy running on iOS 14

I have a simple Blynk project with one push button connected to virtual pin 0 (V0).

I am sending status of the V0 virtual pin on my Blynk (legacy) ios app to a NR flow. It is working fine and I can see the pin status (0 or 1) on the debug node on NR.

The Wi-Fi in my house keeps dropping. When the Wi-Fi drops and then returns, the RPi reconnects to the Wi-Fi and comes back online.

However, at this point, I am facing the following problems:

  1. The Blynk ios app says that Blynk if offline.
  2. If I try to inject data to a Blynk node in my NR flow, nothing happens.

If I then invoke 'Restart Flows' from the NR menu, both the above problems get resolved. i.e.

  1. The Blynk ios app is now online
  2. The inject data works and I can see the output in the debug node.

Please could you help to resolve this issue.

Thanks and regards,
AJ