How do I deactivate a form during validation?

You can do this in the slot validation action by returning an ActionExecuted event with the action action_deactivate_form. Read more about this here