Efficient linear criterion for witnessing Einstein-Podolsky-Rosen nonlocality under many-setting local measurements