set maximum number of switching circuts before reporting underlying error