Error with elasticsearch-logstash

I get below error in my ELK setup. This error is not there in logstash version 6.3.2 and beacuse of this error i am not able to upgrade my logstash as this error is still not fixed in latest logstash 7.8.0

[ERROR][filewatch.tailmode.handlers.grow] read_to_eof: general error reading ..XYZ.log {"error"=>"#<SystemCallError: Unknown error (SystemCallError) – XYZ.log>", "backtrace"=>["org/jruby/RubyIO.java:2958:in sysread'",
"/etc/logstash-6.4.3/vendor/bundle/jruby/2.3.0/gems/logstash-input-file-4.1.6/lib/filewatch/watched_file.rb:224:infile_read'", "/opt/tools/logstash-6.4.3/vendor/bundle/jruby/2.3.0/gems/logstash-input-file-4.1.6/lib/filewatch/watched_file.rb:236:inread_extract_lines'",
"/opt/tools/logstash-6.4.3/vendor/bundle/jruby/2.3.0/gems/logstash-input-file-4.1.6/lib/filewatch/tail_mode/handlers/base.rb:52:inblock in controlled_read'"]}[ERROR][filewatch.tailmode.handlers.grow] read_to_eof: general error reading ..XYZ.log {"error"=>"#<SystemCallError: Unknown error (SystemCallError) – XYZ.log>", "backtrace"=>["org/jruby/RubyIO.java:2958:insysread'",
"/etc/logstash-6.4.3/vendor/bundle/jruby/2.3.0/gems/logstash-input-file-4.1.6/lib/filewatch/watched_file.rb:224:infile_read'", "/opt/tools/logstash-6.4.3/vendor/bundle/jruby/2.3.0/gems/logstash-input-file-4.1.6/lib/filewatch/watched_file.rb:236:inread_extract_lines'",
"/opt/tools/logstash-6.4.3/vendor/bundle/jruby/2.3.0/gems/logstash-input-file-4.1.6/lib/filewatch/tail_mode/handlers/base.rb:52:in block in controlled_read'"]}