Hi @Anonymous ,
Find the below approach for send the Error Information using mail when flow got failed.
Step 1. First Initialize the Variable like below.

Step 2. Now Filter the Error and Append the error details. and Send the Email for Error to Developer.

In the above screen you can see the result(Main).
So here Main is the Scope where all the Actions happen

.Now we can filter the Error Details and add them into the mail.

Send email Like Below-

Thanks,
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."-Vijay