‘ No Prophet could (ever) be false to his trust…’(Quran 3.161)
Prophets are infallible in the sense that they don’t commit any sin deliberately
But as humans they can make innocent errors of judgment.
Prophet Adam ‘forgot’ Allah’s warning against shaitan (20:115) and so slipped into disobedience (2:36).
Prophet Muhammad (s) made an error of judgment concerning the blind man (80:1-10).
If our role models are angels, then our complain will be, ‘well they are angels, they don’t commit sin…we can never be like them’.
If our role models are human beings committing major sins, then our excuse will be…’why follow another human being who is as bad as we are’.
Thus, a prophet in Islam is a human being who refrains from any major or deliberate sins, and also is a human being prone to errors of judgment and then asking for Allah’s forgiveness. Therefore prophets in Islam retain credibility and we can trust in their conveying of Allah’s message to us.