If you are using ‘pre_get_posts’ hook and modifying queries on your site, that might affect the wp_nav_menu() function.
I am not using underscores but had the same issue and solved it in a similar way mentioned here:
https://wpml.org/forums/topic/since-update-wp-6-0-menus-are-messed-up-und-untranslatetable/
In my case, removing one of the processes interacting with queries written in the hook solved the issue.
-
This reply was modified 2 years, 4 months ago by Keishi Asai.