You need to contact the maintainers of local_o365. Looks like a bug with that plugin. (Try looking up that plugin in the plugins DB.)
Moodle office tool integrations
Error occurring when modifying courses' settings
This discussion has been locked so you can no longer reply to it.