Second-order stress relations for hyperelastic constrained materials