Off-equilibrium confined dynamics in a glassy system with level-crossing states