Is this running under Mono (i.e. OS is not Windows?). Trying to look that up found possible source here although I’m not familiar enough with the design to know exactly why it’s complaining, especially as it did.
Can you get any sort of new destination up on OneDrive v2. at least to the point of a “Test connection” working? Please keep it simple, avoiding non-alphanumeric characters, which might be having problems.