How do you stop a running Lambda that is stuck in a recursive loop?
Set the function concurrent execution limit to 100 while you update the code.
Reset the function.
Set the function concurrent execution limit to 0 while you update the code.
Delete the function.