Get a long monitor arm and pull the monitor out from the desk. Mine sits almost flush with the desk, with my arms going underneath to the keyboard/mouse. This helped me remain sitting upright without leaning forward.
I'm legally blind (I'm very nearsighted, to the point where I need to be within an inch of the screen to see it), and this is basically how I use my computer comfortably. I have my monitor arm mounted to the front of the desk, to the left of my monitor. This allows me to have the monitor slightly out from the front of the desk but still put my hands under it to the keyboard. This does create some awkward situations though, like using a webcam is challenging because I'd need to push my monitor back but then I can't see it! I usually put the camera off to the side on the rare occasions that I need to be on video.
Have you been to an optician recently? I was finding myself leaning in, then had a test earlier this year and, well, now I have a (very mild) prescription.
I've have been prescribed +.5 a long time ago, more than 15 years ago I think. Was warned that once you go forward you cannot go back. I am still not wearing glasses though my vision for small fonts has took a serious hit lately. Back then I had excruciating headaches but Flux fixed that so I chose to forego the prescription.
That's interesting. If I wear & don't wear too much in a day I do get a headache, but I think if I don't at all then (until I do) it's fine so far.
The main thing that would stop me now is the reminder of what everything should look like - the world was very slightly blurred so gradually that I didn't notice, but now I put my glasses on and it's like switching to 4k.