It's not possible to divide by zero in math. As the visual builder calculates this expression for every value in the date histogram, there seems to be a section of time where the document count was zero for the query.
That said, which version of Kibana are you using? I am unable to reproduce this in 7.12.
In the mean-time, you could potentially use the clamp function to prevent this from being zero.