One way to stop electromagnetic fields from leaking outside of a module is an electric wall. Embodiments of the present disclosure are directed to emulating an electric wall with through vias. The through vias may be arranged around cavities in the printed circuit board. The density of the through vias may be selected based on an expected wavelength of the electromagnetic fields. The printed circuit board may then self-isolate components within the cavities from the electromagnetic fields.