Uncertainty aware anomaly detection to predict errant beam pulses in the SNS accelerator