Hi @hi2019,
The same error is reported here, with a proposed solution that may be worth trying (depending if you have a similar server configuration): Error Installing Any Plugin in Plugin Gallery - #2 by hilongo
Please note, do not use 777
permissions.
-Roger
PKP Team