Grafanav5.4.2/Influxdb Diagram Panel Network Error(Undefined)

I am using Grafana which pulls data from a tool and stores it into influxdb via script, this data is being populated in Grafana dashboards. I am using
Grafana v5.4.2 and data source is Influxdb. Both hosted in ICP environment. In diagram plugin, we have some 25 queries with $timeFilter for each, past week we faced an error like Network error(Undefined). This happens when query reaches above 18. This is happening only from past week, earlier the dashboard was working fine for a month. We couldn’t identify what’s the issue.
Help me to fix this issue as the earliest.
Thanks in advance