improve handling exception while set newCaptureDevice.activeVideoMinFrameDuration and newCaptureDevice.activeVideoMaxFrameDuration