This happens to me. I was actually worrying about it so much I think it was hurting my magick for a while. This is what help me:
Before every ritual I tell myself, “The universe doesn’t hear what you say, the universe hears what you mean”.
Just focus on your dominant intentions, and if you have pure intentions while doing a ritual, you shouldn’t worry. If a weird, negative thought comes up it’s probably just due to nerves and is only there because you want what you’re casting for so much. Just power through the ritual. Don’t stop and acknowlegde it. I just tell myself that the spirits only hear my dominant thoughts and intentions. At this point, when doing rituals, I tell myself I’m just going to focus on what I’m casting for and not worry about negative thoughts.
Also, I know this sounds weird, but be yourself. At least for me, these thoughts were partly caused by nerves and stress. People often tell you to be emotional and dominant during the ritual, however I am such a calm person, that forcing myself to be authoritative and gather great emotions during the ritual was stressing me out and making me force things. Since I’m a calm person, I just state what I want calmly. Focusing on only what I want. Like I said, if a weird, negative thought comes up I completely ignore it and just focus on my primary thoughts. The spirits are only listening to your primary thoughts and true intentions (in my opinion).