Sometimes the hole after the current one will be removed when Agda: Auto is used, leading to syntax errors or ill-typed expressions. I'm not presently sure what the precise conditions are for when this happens.
As always, I'm experiencing this error in literate Agda Markdown files.