_your regular dose of machine vision insights

This is how simple the fix could be.
You might not need a new camera.
Lighting makes a huge difference to how well machine vision systems perform.
More often than not, a tweak to your lighting setup could solve all your reliability issues.
Here's how a bandpass filter might be the answer...