Linear systems with a large number of sparse constraints with applications to incompressible materials