The Cosine Error: A Bayesian Procedure for Treating a Non-repetitive Systematic Effect