PrefixNLI: Detecting Factual Inconsistencies as Soon as They Arise