Sounds like an edge case that Microsoft didn’t think of when they developed OneDrive on Mac. You should contact them and let them know that they should exclude OneDrive from Time Machine backups automatically unless it’s configured to download everything.
You can very easily exclude folders from Time Machine backups yourself.
You can very easily exclude folders from Time Machine backups yourself.