Welcome to our forum.
This probably conflicts with 3rd party plugin with global variable $wp_query, please deactivate others plugin one by one to check/test the issue. let me know which one you found,
also try with others default themes. let me know the result. if you are using cache plugin also deactivate it.