Node red keep restarting or restarting HA since new flow

I recently have some issue when node red become unavailable, restart, or make the whole HA assistant restart.

It’s seems even more often since I added this flow

any idea why and how to fix it?