If there was unripe nectar in the cells you should harvest it and consume it or you can feed it back to the bees. After that, freeze for a day, rinse, dry, then wrap in a pest proof container/bag and store somewhere dark.
The moths won’t destroy the frames but they can damage the wood and eat the capping and bits of wax. Freezing will destroy all life stages of wax moths and SHB.
There was this thread which has some discussion about what happens when things go too far.