As we do encounter the same problem when accessing our CODE server from Moodle (instead of Nextcloud), I’ve filed a bug at the CODE project: