Hi Aditya,
I had a similar problem when I first starting meditating, my eyeballs had a mind of their own and seemed to want to go up into my forehead for some reason which caused a bit of strain. I came across a similar question on this sight a few years back, and the advice given really helped me. I cant find the advice now, but basically it was to bring your eye focus to a rest position, i.e. when you are sitting, perhaps an eye focus point on the floor about 3 or 4 feet in front of you, even if you meditate with your eyes closed as I do. At first I had to keep gently refocusing when I was aware they were wandering, but not for long. Now they stay put without any attention given them at all during meditation.
Hope this helps you as it did me.

Kind regards