Quick bugfix: remove {% ... %}, (% ... %) placeholders from excerpts
If you use placeholders like {% ... %} and (% ... %) near the beginning of posts, they are processed when they appear in excerpts (so if you e.g. insert a gallery in a post it can appear in the excerpt).