Students and graduates have described their shock at being told they were not eligible for the loans they received.