Here in the south, SHB's are a real threat to the hive. The more SHB's that are in a hive the better the chance for them to take over. Every time the hive is stressed, like a full inspection, swarming, robbing attempt or the loss of the queen, the bees stop paying attention to the Beetles and make repairs. This can take 2 to 3 days. By the third day the beetles have saturated the hive with as many eggs as they can. The bees then switch to normal duties and clean them out. If they do not get them out in time the hive is slimed and the bees are forced to leave.
How do I know this, I have a Observation Hive in my house and have seen it happen over and over.
I had seen these frames in other beeks hives, with lots of beetles hiding in them.
I recommend you fill them in with something the SHB nor the wax moths can penetrate. Try just a little bit of gorilla glue. Let it expand and then when hard shave off the excess.
If you have a large SHB I recommend you use screen bottom boards with an oil tray. Just make sure the bees cannot get in the tray. I and a neighbor have killed tens of thousands of SHB with the oil trays.
Jim