You do not have a PEM in a electrolyser, a PEM is use in a Fuel Cell, that is a proton exchange membrane, and on the other side of the PEM, you'll generate water, but not from a chemical reaction that will release lot of heat, instead, you'll have generation of a electricity in the cell
Cya