Handle error when formula evaluation fails