More error checking for user provided C# policy selection delegate (#24666)
### Description
<!-- Describe your changes. -->
Handle user selection policy delegate throwing or returning too many
selections in C# code and create error message.
### Motivation and Context
<!-- - Why is this change required? What problem does it solve?
- If it fixes an open issue, please link to the issue here. -->