You are not alone. There are threads here and here reporting this issue after upgrading to 8.4.2. Neither thread provided any resolution.
For output redirection to affect whether you get the exception is baffling.
© 2020. All Rights Reserved - Elasticsearch
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant logo are trademarks of the Apache Software Foundation in the United States and/or other countries.