You may follow this guide. Hope it helps.
https://anurajapaksha.blogspot.com/2025/05/how-to-re-execute-failed-step-functions.html