Search query exception "org.elasticsearch.index.query.QueryShardException: failed to create query"

Welcome.

Here email_addresses is not of nested type in your mapping. So you can't use nested queries.