I'd guess it's power FETs that fail. You'd have to design a shield of sorts, manufacture it, and still bury it in a compound with the pi, since high-temp high-humidity environment will kill them in weeks. Of course, being buried in a brick of epoxy, both switching and the pi would have all sorts of cooling problems.
It can be done, but it's not that simple.