btw, if you’re of the opinion that phrases like “checking if X is sane” / “sanity check” are awkward/inappropriate language to use in code/docs:
the phrase “sensical” or “consistent” often fill the gap nicely (e.g. “ensure the value X is sensical” / “consistency check”)