Grafana using influxDB

I have a setup where I am using Grafana to plot information using influxDB as a datasource. This is a monitoring of a certain value which is shown in a graph with time on the x axis. Once a day there is a gap of five seconds where for those epochs no data is received. However, checking in the influxDB logs it seems that the information for these epochs is stored. Where is the information being lost? The time at which the gaps appear varies every day, and some days there are no gaps, so it does not seem to be a periodic process in the machine which is interfering. Has anyone encountered a similar issue before? My influxDB version is 1.8.10 and my Grafana version is 8.3.4