Error: Failed to save a MetricsBin due to constraint violation