The Scheduled Task includes one or more mailboxes that are unmanaged.
Ensure that only the managed mailboxes are considered for the scheduled task. You can manage mailbox license from Settings > Admin > Utilities > License Management.
Need further assistance? Fill this form, and we'll contact you rightaway.