Since a stack is just an instance of your Pulumi program, there is no rollback capability at the stack level. The best way to do this is to maintain versions of your code in your versioning tool so that you can redeploy the last stable version in case changes have adverse effects.