Raise informative exception when header level is invalid for quicklinks.

[fixes #75549752]

Signed-off-by: Matthew Boedicker <mboedicker@pivotallabs.com>