pub fn errors_within_budget(errors: &[RichError], max_errors: usize) -> bool
Checks if a collection of errors is below a threshold.