It happened to me at least twice. I guess (and it's just a guess) that when a block including a variable is deleted BEFORE its variable was removed it becomes a kind of 'ghost' that is not visible on the builder bit it is still considered to be in the project.
I had to redo the whole project to fix that problem. 😞