All perfect praise be to Allah, The Lord of the Worlds, and peace and blessing be upon the Messenger of Allah, his family, and all his companions.
If your husband uttered his words as: “Ya Talaq” without intending this expression, but his tongue preceded him, then this is considered nonsense that does not result in divorce, but if he intended that expression but did not intend the divorce, then we haven't read or heard from the scholars regarding the ruling on this expression, but what they stipulated is something close to that, such as the husband’s saying: “Ante Talaq” or “Ante At-Talaq,” which is explicit divorce according to the majority of scholars, so divorce takes place without intention. While some scholars see that it is a metaphorical expression and is not explicit. Imam An-Nawawi, may Allah haave his mercy upon him, said in (Rawdat At-Talibeen): And in his saying: “Ante Talaq” or “At-Talaq” or "Talqah", there are two views regarding this: the most accurate of them is that it is a metaphorical expression. [End of quote]
What appears to us to be the predominant opinion - and Allah knows best - is the opinion of As-Shafi'is that says it is a metaphor. Accordingly, divorce didn't take effect so long that your husband didn't have the intention to issue a divorce with this expression.
You are obliged to treat your husband kindly and repent to Allah for the insults and spitting on your husband’s face because it is an abominable act.
Allah knows best.