Try OneDrive v2. Manual testing and user experience with OneDrive for Business says it avoids 5000 limit. On the other hand I don’t know if there’s some higher limit that it might run into if it keeps adding more files.
‘No files were found at the remote location’ using Onedrive for business
Failed Backup with id: 3 (Missing Files)