How do I optimize my glass material?

In that case you’ll have to make a blueprint for that glass mesh to switch material based on the distance of character or camera angle whichever you prefer based on your need.

Don’t switch lods if its giving you problems just switching to materials might help, make two copies of materials one with the closeup glass and another one with opaque one and switch between them.

You’ll probably find tutorials to switch materials based on distance or maybe some videos related to it.