I remember that there was an option to set the sync folder directory in the folder properties of OneDrive in the past, but now the latest version does not seem to have it, and the sync folder defaults to the C drive.
How to change OneDrive's sync folder directory (path):
1. Right-click the OneDrive icon and open Settings
2. Click logout
3. After logging out, you will be automatically prompted to log in. After you enter the account password, there will be an interface prompting you to modify the folder location of OneDrive