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.
First of all, we ask Allah to heal you. You should know that the treatment for whispers is to repel them and not pay any attention to them.
With regard to divorce, the Fatwa about it is similar to the judicial ruling. In many cases, there is a need to ask the spouses orally. It is for this reason that a group of Imams, such as Sufyan ath-Thawri, abstained from issuing Fatwa about divorce.
Since you have asked a trustworthy scholar about a Fatwa and he issued a Fatwa to you that divorce did not occur, then act according to his Fatwa and you will be acquitted from sin by following his view. Do not ask again [about the same thing] without a reason.
Asking the same question again causes confusion, especially that you are affected with whispers.
There is no doubt that you have absolutely not become a Kafir by what you mentioned in your question.
Allah knows best.