Logical replication subscribers can be automatically disabled using the disable_on_error setting.
disable_on_error