I encountered the exact issue with yours and tried every solutions almost, but didn't work on my Windows 10 22H2 19045.5011. Finally, I got this solved easily just by installing the latest version of OneDrive application. The folder setting appeared immediately after signing in. The Microsoft link is below: More @Wikipedia
Hover over any link to get a description of the article. Please note that search keywords are sometimes hidden within the full article and don't appear in the description or title.