If I'm not wrong you cannot use an Elastic Agent managed by Fleet to write into a custom index like that.
Check this answer to a similar question.
No, it is not possible. The fleet-server service account is only able to write to indices that are managed by fleet, and there is no way to change that.
The alternative would be to write into something that the service account has permission, for example a data stream starting with logs-*
.