You do not have to persuade her to spare Aylin.

If your approval with Shadowheart is high and the narrator mentions that you've created a meaningful bond with her, then simply by not intervening and trusting her to make her own choice will cause her to throw the spear away.