All perfect praise be to Allah, the Lord of the worlds. I testify that there is none worthy of worship except Allah and that Muhammad is His slave and Messenger.
Insulting the Prophets, defaming them, or mocking them is an act of Kufr (disbelief) according to the consensus of the scholars.
Shaykh Saalih Al-Fawzaan said, “Likewise, if someone insults Allah or one of His Prophets, then he has indeed disbelieved.” For more benefit, please refer to fatwa 330349.
These acts that you mentioned and others were done by the Prophets by revelation from Allah, the Almighty; for instance, Ibraaheem (Abraham) left his wife and son in Makkah by the commandment of Allah, and the Prophet married ‘Aa’ishah upon revelation from Allah.
So those who insult and despise the Prophets, may Allaah exalt his mention, must sincerely repent to Allah, and it should be clarified to them that by doing so, they go out of the fold of Islam – and we seek refuge in Allah from that.
Allah knows best.