My KNIME Workspace folder contains files such as ‘.lock’, some empty files, etc.
Those kinds of files are not supported in Sharepoint. See screenshot below.
I would not recommend syncing a complete workspace into a sharepoint. This means, that all files are synced to the sharepoint. A KNIME Workflow consists of a lot very small files. Those are changed when you are saving the workflow.
If you want to backup your workflows into a sharepoint, you can export them as knwf file and so save regular copies.
the .lock can not be disabled. Can you configure sharepoint to just ignore those files?