Well, first, I have to say that it is possible to have painful eyes when you eat too much sugar. Also, you need know that eating sugar may also cause burning eyes in some degree. So that can be a normal situation. To relieve your pain in the eyes, first, you should stop eating sugar. And then you can put some cool ice or cool cucumbers on your eyes to have some cold compresses, and then, just repeat them. Also, a diet rich in fresh fruits and vegetables which provide lots of antioxidants, especially vitamins A and C can be a good option. Anyway, you can just have a try.