Getting status as INVALID NUMBER when the time duration is selected as 30 days

I am getting a status INVALID NUMBER when the time duration is selected as 30 days. The query is giving the data when selected Last 5 mins - 7 days. I have checked the query inspector and there is no NULL value in the query.

image

What data source are you using?

We are using Prometheus as the data source