In my experience there are a few things to look for when discussing such things as being rebuked and a spirit deemed familiar or non God.
The fruit of the spirit must be clearly evident in the rebuker. (In this case, as I read it here, self-control for one was not exercised nor love)
A rebuke is always done with love as its backbone, for correction etc. Secondly a person hurt in a situation, (so close to the person they are hurting about/over) would themselves be clouded so ……although not impossible it is difficult to see that she would be the vessel used to bring you into correction (but not impossible)
(I am not meaning to sound as if I am having a go at your exwife, I myself have been in that scenario – in a somewhat similar situation to your wife’s position)
The bottom line is …. with any rebuke and with declarations of familiar spirits and the like … the fruit of the spirit must be clearly evident for starters.
Personally I never listen to anyone too close to a situation, and they must exercise the fruit in their life alot (no one is perfect)
I have seen many people “prophecy” out of anger, hurt, and ignorance of the situations. They sometimes mistake their own feelings welling up inside as to be the Spirit of God manifesting in them. Kind leadership and or people around them can put out the fire (with love and understanding) before it does any damage.
In this case misunderstanding is the only problem. In the bible there were many a eunuch that would have and did worship God. Not all of them castrated. I wonder ………..
Anyone is allowed to worship God. God is a big boy (if He has a gender) I am sure He can deal with lots of different people worshipping Him. He looks at the heart, nothing else.