You could fill the worm holes with a Titebond/sawdust filler,and the wood would be fine under glass.
How large of pieces do you have? Is it old wood from a house or barn? Or new saplings? I'd love to get my hands on a couple of slices 5-6" wide x 30" long x 1/8" thick, to make a mountain dulcimer from.