True, but Isaiah 38:1-5 does not contradict Deuteronomy 18:22.
And there are several false prophets listed in Jeremiah, receiving rather gruesome punishments for their presumptuousness.
When a prophet speaketh in the name of the LORD, if the thing follow not, nor come to pass, that is the thing which the LORD hath not spoken