You can retain backups up to the ONTAP maximum of 255 copies. If up-to-the-minute backup retention is not working or is not configured correctly, log backup folders might not be deleted and the maximum hard links might be surpassed, which might cause log backups to fail.
Ensure that up-to-the-minute backup retention is configured and working correctly.