raises an error when unable to create clusters in Ward clustering