You should see an ophthalmologist rather than an optometrist. If there is a doubt of glaucoma then it should be ruled out. You could be having severe dryness in your eyes. The other possibility is a refractive error for which you would need prescription glasses. Even though I have not examined you but you're likely to be having computer vision syndrome. Lubricating drops like Systane or Refresh Tears should be used frquently. While working you should try to blink in between as that is reduced and adds to dryness. Also give rest to your eyes in between. The level of the computer screen should be lower than your eyes level so that the eyes do not open widely. Thabks and best wishes.
Follow-up questions, if any, are welcome.
Please, click the ACCEPT BUTTON so that I can get my dues. BONUS and a POSITIVE FEEDBACK will be appreciated.