I was experiencing discomfort while staring at the computer in my glasses. In the end the solution was quite simple: there was a bend in the frame of my glasses. The second optician straightened the frame manually, so the lenses now line up without much of a curve. After this, my symptoms went away.