On the Hilbert scheme of curves of degree \(d\) and genus \(\frac{(d-3)(d-4)}{2}\) Obstructions to deforming curves on a 3-fold. I: A generalization of Mumford's example and an application to \(\Hom\) schemes 