I’m not an expert, so take this with a grain of salt.
There’s less wood exposed in a 335, but there is still some; that wood could be impacted by humidity the same way the wood in the Martin would. Since there’s not as much exposed wood, and it doesn’t have the pressure and stress on it that a hollow body does (it’s not bearing the tension of the strings or the downward pressure of the bridge for example), I would assume there is a lower risk of stress cracks happening