Perhaps this was your point anyway but this sounds like a very modern set of problems. Perhaps religious history of "battling" witchcraft and demonism can be understood as societies having witnessed a similar set of social issues brewing and looking for the root cause.
An interesting connection that popped in my mind is women I've met in life who called themselves witches, or were interested in the concept, or even just dressed every day like it's Halloween - these aren't people you easily picture being close to their family, being married with children, being optimistic and entrepreneurial, etc. You kinda picture them at least absent from those things but perhaps more actively seeking to subvert them (eg: r/WitchesVsPatriarchy - by "patriarchy" they basically mean "everything")
So perhaps the religious history of battling witches is just a limited/filtered understanding of the larger (and necessary) social theme of trying to preserve virtuous, energetic, spiritual, values-driven society, during times they were under attack.
The number of "perhapses" in this comment should make it clear that I am just riffing here, but this is what your post inspired.