Could one argue that the rewrite being necessary was the result of too much technical debt? Thus the debt did contribute to the failure.
But I wouldn't go so far as to call it the sole reason the project failed - that just sounds too easy an explanation.