Capacitive voltage coupling into the heatsink from the 2 collectors of the switchers via the isolation pads or the isopak transistors, with the one being connected to 300V from the input doubler and the other to the switched input to the transformer. You probably had 1mA at whatever the switching frequency was flowing through your skin. If your skin was damp, like from humidity or just washing your hands, then it would have stung a lot more. As you were touching the grounded secondary heatsink ( often unintentionally, as they leave a silpad off on one diode to save cost, commonly the 12V rail) the current only flowed through the same hand.