Entrypoint for printing meaningful debug information in case of failed internal consistency checks.
This function throws exception and generates useful debug information, as well as instructions on how to report the bug.