Try to change your controller. It usually is caused by controller being worn out.
Reason? You need to pull RT/R1 (depends on your platform) further for snipers and shotguns compared to other weapons, so once your controller gets worn out these two weapon classes will be the first ones to refuse to shoot.