I have some special glasses for riding. I got them because I don;t want to risk scratching the main ones
and I could do with spares in case I do scratch them in normal life
they came with a back strap which would stop them rattling around
I am sure there will be glasses that are designed for work where you are at risk of then not being secure
you optician would be able to find out
Mine said he liked searching for prescription glasses for cycling - I suppose it is a fairly repetitive sort of profession - just different people and different numbers
so looking for something different was a nice change for him!