Error Discover:[number_format_exception] empty String

It just appears whenever I have any default index pattern is selected. In the Discover tab, when it loads the page, it displays the error.

The indexes are accessible from the Console and the fields are visible in the visualisations as well.

Thanks