I think he's talking about conformal coating, not solder mask. Conformal coating can help but it's mostly there to prevent shorting across component leads from condensation. If you smash the Al casing against the board there's a good chance you can chip the coating and short things out.
Compressing the bottom of the case will short.
It's badly designed.