It's impossible to do a nested query with the lucene query syntax. I think we can add nested support to Kuery in a way that's transparent to the user, but we don't support it today. It's on my wishlist of things to implement in the future.
I'm not sure about that error, I haven't seen it before. Is it specific to this particular query/data set, or does it show up for any nested query?