She was indemnified by the State of Alaska. She resigned so the People of Alaska wouldn’t be on the hook for millions in attorney fees and to stop future garbage lawsuits.
No book deal would cover all that.
I don’t recall having read that at the time, but if it were so, that’s all the more reason not to have quit (for her, a second office).