Avoiding flashover in MV switchgear