Hello,
You should try below. "assignments Assigned to User Id" returns an ID and not a UPN or email address.
Define a string variable.
Pass "assignments Assigned to User Id" in "Get User profile" action to get the UPN of the assignee on of the task.

Then set the variable from the above output, and then pass the variable to the send an email action.

Hope this helps !