I was working on a requirement where a task has to be assigned to a SharePoint group and an email has to be sent to that SharePoint group upon task creation. So I created a SharePoint group in a Task List called “Approvers” and added few people to it. In SharePoint workflow added a “Send an Email” action and added “Approvers” group in “To” section. Published the workflow with no errors. Then I created a task and assigned the task to “Approvers” group. But the workflow was throwing below error in workflow history and was failing to send the email.
"Coercion warning: user or group does not have a valid e-mail address."
Solution: Use the “Return field as” Display Names instead of Email Addresses if you are having a SharePoint group in the email.