The processor has encountered a version of XQuery that it does not support in the version declaration. For XQuery 1.0, the version (if specified) should always be 1.0, as in:
xquery version "1.0" encoding "UTF-8";
3.17.174.0