Praise be to Allaah.
We ask Allaah to grant you healing and well-being.
The divorce that you mention does not count as such.
Shaykh Ibn ‘Uthaymeen (may Allaah have mercy on him) said: If
a person is affected by waswasah, his divorce does not count as such even if
he utters it out loud, if he did not intend to say it, because this phrase
may be uttered by one who is affected by waswasah without him intending or
wanting to say it; indeed it may be forced upon him because of the strength
of the waswasah and his weakness to resist. The Prophet (blessings and peace
of Allaah be upon him) said: “These is no divorce in the case of
compulsion.” The divorce does not count as such, because he did not really
intend it with complete peace of mind. This is something that is being
forced upon him without any intention or choice on his part, so it does not
count as a divorce. End quote from Fataawa Islamiyyah, 3/277.
The remedy for waswasah is dhikr or remembrance of Allaah,
and ignoring it. This has been explained in the answer to questions number
Shaykh al-Islam [Ibn Taymiyah] (may Allaah have mercy on him)
said in Dar’ al-Ta’aarud (3/318): This waswasah may be dispelled by
seeking refuge with Allaah and by ignoring it. So if the waswasah says: You
did not wash your face, he should say: Yes I did wash my face. If it occurs
to him that he did not form the intention or say takbeer, he should say in
his heart: Yes I did form the intention and say takbeer. He should remain
steadfast in following the truth and ward off any waswasah that is contrary
to it. When the shaytaan sees his strength and steadfastness in following
the truth, he will go away from him, otherwise if he sees that he is
receptive to doubts and specious arguments and that he responds to waswasah
and passing thoughts, he will bring against him more than he can resist and
his heart will become receptive to what the devils among mankind and the
jinn put in his mind of ideas and the waswas will move from one thing to
another until the Shaytaan leads him to doom. End quote.
So ignore the waswasah and do not pay any attention to it,
and it will disappear from you by Allaah’s leave.
And Allaah knows best.