I tested this functionality on dev environment and sitemap shows correct info.
I removed one specific page and sitemap was been restored.
Can’t give the link, but i’m sure that page crushes my sitemap.
Maybe, you know what is wrong?
I found the issue.
There are some orphaned pages in my site.
When I remove it, sitemap shows right structure.
But i need pages which yoast marked as orphaned.
What i need to do to fix it and save my pages?