Logstash fails with "FFI not available" message when starting logstash on Centos 7.9

Check this and, as Leandro recommended, change tmp path in jvm.options.
-Djava.io.tmpdir=/opt/logstash_tmp or any other directory on which logstash user has write rights.