How to update footer.php in Airi Pro theme

Getting below error while updating
“Unable to communicate back with site to check for fatal errors, so the PHP change was reverted. You will need to upload your PHP file change by some other means, such as by using SFTP”.

Also tried replacing footer.php using SFTP but getting permission denied