That seems unlikely, given that beekeepers have kept hives in similar thin-walled boxes for centuries and colony collapse is a recent phenomenon. Plus CC occurs in wild populations[1] as well, suggesting either a widespread environmental factor or communicable agent.
[1]https://www.nrdc.org/stories/colony-collapse-disorder-why-ar...