Improved error messages when an invalid number of contracted beads is specified