Disentangling Perception-failure-induced Corner Cases by Counterfactual Reasoning