1. Check if the folder wp-content/plugins/ is not exist, create it by yourself.
2.Check etc/https.conf the User and Group setting value (it might be daomon )
3.set the owner and group for project owner. (if the macos login user is abc, project folder is project) :
cd /Applications/XAMPP/xamppfiles/htdocs/project
sudo chown -R abc:daemon
sudo chmod -R 775 .
4.Reload plugin page and try to install