BUG: quantile segfaults on invalid quantile values
- [x] closes #27470
- [ ] waiting for #27584 to be resolved (move `check_percentiles` out of `NDFrame`)
- [ ] waiting for #27526 to be resolved (#20405 cythonized `Groupby.quantile` with functionality regression)
- [ ] whatsnew entry
