Clears the analysis results and records an error message.
Declared in <node/psbt.h>
<node/psbt.h>
void SetInvalid(std::string err_msg);