In my case, this happened because for some reason my ~/.zcompdump file became corrupt. So I had to delete it with...
rm -f ~/.zcompdump*
And then start a new terminal session