Send email / Unknown error

Goal
Custom action sends email when triggered.

Help needed
Admin gets an unknown error notification via email when this action is triggered.

Screenshot 2024-05-20 at 13.13.38

Additional info
Never seen this before

Screenshot 2024-05-20 at 13.28.00
Logs show it ran successfully.

What causes an unknown error?