Hi @Stephen Hope
I want to help you, but your issue is also related to Visual Studio Community, I suggest you post a new thread in: https://developercommunity.visualstudio.com/index.html?q=Visual+Studio+Community, see if any users with relevant experience can give you suggestions there.
Thanks for your understanding.
The following is my personal opinion, OneDrive is not designed for this kind of real-time file handling by IDEs. For OneDrive mapped drives, there aren't many settings to control OneDrive sync.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.