Consider using https://learn.microsoft.com/en-us/sharepoint/sync-health?tabs=windows
You can also control OneDrive sync behavior with Intune and Group Policies: https://learn.microsoft.com/en-us/sharepoint/use-group-policy
If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.
hth
Marcin