I remember seeing this post where letsencrypt was having difficulties parsing a RewriteRule unless quotes were added.
Maybe the same thing is happening here with AliasMatch - it’s dealing with regular expressions as well. Just a shot in the dark, I haven’t encountered the error myself and didn’t test this.