>What problem ... ? The existence of condensation is not a problem of itself... so what was it doing to your bees.
I have overwintered bees for 40 years and yes you will always have condensation. It's a problem when there is a lot of it and it drips on the bees.
>Was this top closed or with vent?
The entrance was a hole about 1" in diameter (2.5 cm) in the front of the box about 3/4 of the way up. I have done similar things with wood with good results. I had four of the styrofoam boxes with bees in each.
Thought so ...
Did you try no top vent?
To go polystyrene you need to take on the full system not keep bits of what you did before. i.e. upper vent. If snow is a problem, find a solution to the snow without using top entrances (there are several solutions pick one)
The heat transfer physics and Apiculture research shows shows you cant mix high heat loss tactics with low heat loss tactics successfully. The extra energy you save withthe insulation goes into driving convection and other not helpful things.
The insulation fixes any dropping on the bees. To make insulation work and keep the condensation off the bees dont have any top vent at all.
If you start putting vents in it isnt going to work.
If top vents are an article of your bee keeping faith, dont bother with insulation or polystyrene and I wont bother trying to reason with you.
But if you are willing to try something new, Them Polystyrene, no top vent, and keep the snow from blocking the bottom by either shelter , taller stands, shovel. Keep the skunks away with taller stands, wire, guns etc...
Polystyrene used properly is not a wood replacement, but a beekeeping system, A low heat loss system.
I do talks overhere on the heat transfer in beehives and tree nests, I have 2 hour question sessions with ventilation die-hard and most of them are convinced that a low heat loss bottom ventilation system is for them.