Technically, a syntax error would mean that the text cannot be recognized and parsed according to given the grammar they are using.
The size error appears to be post parsing.
Generally speaking, syntax errors (errors in parsing/recognizing) offer a worse user experience than semantic errors (post parsing).
When parsing fails the rest of the text is in doubt (though in assembly, restarting the parse could be simple as discard the line and going on to the next line). When parsing fails, we also don't know a lot about the actual error.
Given a choice between restricting something by way of the grammar, vs. restricting something by a semantic check, the latter is usually preferred as it (both allows the parse to continue, and then) offers an opportunity for better error messages.
In this particular case, the error message does leave a lot to be desired — so it is probably a general error message used in many places.