Error when installing elastic agent using M1 and Macos Sonoma

Hello, im trying to install an elastic agent with fleet using macos Sonoma, but the installation always failed and showing :

Error: failed to fix permissions: chown /Library/Elastic/Agent/data/elastic-agent-913c02/elastic-agent.app: operation not permitted

I was sucessfully installed it on the Monterey with no issues, what are the issues that currently happening? and why this happens only on Sonoma and Ventura OS ? Please help me..

Thank you