Is it dangerous to only eat throat lozenges?

Yes. Throat lozenges may have a little sugar in them, but otherwise, they have no nutritional value. If your throat is very sore- try soups and soft foods.