As owari mentioned, doubtlessly Prophet Muhammad (SAWW) was capable of making mistakes and being wrong, otherwise he was not a human and his purity was not valuable.
To our view, Prophet Muhammad (SAWW) was sinless. Again it doesn't mean he was incapable of committing sins. It just means that he himself chose not to commit any sin in his whole life.
This belief is based on the following verses:
مَّا أَفَاءَ اللَّهُ عَلَىٰ رَسُولِهِ مِنْ أَهْلِ الْقُرَىٰ فَلِلَّهِ
وَلِلرَّسُولِ وَلِذِي الْقُرْبَىٰ وَالْيَتَامَىٰ وَالْمَسَاكِينِ
وَابْنِ السَّبِيلِ كَيْ لَا يَكُونَ دُولَةً بَيْنَ الْأَغْنِيَاءِ
مِنكُمْ ۚ وَمَا آتَاكُمُ الرَّسُولُ فَخُذُوهُ وَمَا نَهَاكُمْ عَنْهُ
فَانتَهُوا ۚ وَاتَّقُوا اللَّهَ ۖ إِنَّ اللَّهَ شَدِيدُ الْعِقَابِ
And what Allah restored to His Messenger from the people of the towns
- it is for Allah and for the Messenger and for [his] near relatives and orphans and the [stranded] traveler - so that it will not be a
perpetual distribution among the rich from among you. And whatever the
Messenger has given you - take; and what he has forbidden you -
refrain from. And fear Allah ; indeed, Allah is severe in penalty.
[al-Hashr: 7]
مَّن يُطِعِ الرَّسُولَ فَقَدْ أَطَاعَ اللَّهَ ۖ وَمَن تَوَلَّىٰ فَمَا
أَرْسَلْنَاكَ عَلَيْهِمْ حَفِيظًا
He who obeys the Messenger has obeyed Allah ; but those who turn away
- We have not sent you over them as a guardian.
[an-Nisa: 4]
وَقَرْنَ فِي بُيُوتِكُنَّ وَلَا تَبَرَّجْنَ تَبَرُّجَ الْجَاهِلِيَّةِ
الْأُولَىٰ ۖ وَأَقِمْنَ الصَّلَاةَ وَآتِينَ الزَّكَاةَ وَأَطِعْنَ
اللَّهَ وَرَسُولَهُ ۚ إِنَّمَا يُرِيدُ اللَّهُ لِيُذْهِبَ عَنكُمُ
الرِّجْسَ أَهْلَ الْبَيْتِ وَيُطَهِّرَكُمْ تَطْهِيرًا
And abide in your houses and do not display yourselves as [was] the
display of the former times of ignorance. And establish prayer and
give zakah and obey Allah and His Messenger. Allah intends only to
remove from you the impurity [of sin], O people of the [Prophet's]
household, and to purify you with [extensive] purification. [al-Ahzab: 33]
لَّقَدْ كَانَ لَكُمْ فِي رَسُولِ اللَّهِ أُسْوَةٌ حَسَنَةٌ لِّمَن
كَانَ يَرْجُو اللَّهَ وَالْيَوْمَ الْآخِرَ وَذَكَرَ اللَّهَ كَثِيرًا
There has certainly been for you in the Messenger of Allah an
excellent pattern for anyone whose hope is in Allah and the Last Day
and [who] remembers Allah often. [al-Ahzab: 21]
قَالَ فَبِعِزَّتِكَ لَأُغْوِيَنَّهُمْ أَجْمَعِينَ
إِلَّا عِبَادَكَ مِنْهُمُ الْمُخْلَصِينَ
[Iblees] said, "By your might, I will surely mislead them all
Except, among them, Your chosen servants." [Sad: 82-83]
مَا ضَلَّ صَاحِبُكُمْ وَمَا غَوَىٰ
وَمَا يَنطِقُ عَنِ الْهَوَىٰ
إِنْ هُوَ إِلَّا وَحْيٌ يُوحَىٰ
Your companion [Muhammad] has not strayed, nor has he erred,
Nor does he speak from [his own] inclination.
It is not but a revelation revealed, [an-Najm: 2-4]
فَلَا وَرَبِّكَ لَا يُؤْمِنُونَ حَتَّىٰ يُحَكِّمُوكَ فِيمَا شَجَرَ
بَيْنَهُمْ ثُمَّ لَا يَجِدُوا فِي أَنفُسِهِمْ حَرَجًا مِّمَّا قَضَيْتَ
وَيُسَلِّمُوا تَسْلِيمًا
But no, by your Lord, they will not [truly] believe until they make
you, [O Muhammad], judge concerning that over which they dispute among
themselves and then find within themselves no discomfort from what you
have judged and submit in [full, willing] submission.[an-Nisa:
65]
Even if we assume all the cases you mentioned in your question are true, none of them is considered as a sin.