What does it mean when the Imam curse? I’ve heard in an lecture that Insulting is haram Imam Sadiq said it.

There is a difference between a curse and an insult. Curse is the deprivation of Allah’s mercy.

Check an example in Qur’an 2 verse 159