Check the mounting of your motherboard, computer cases are earthed via the little mounting columns you screwed into the computer case before you mount the motherboard on top of these, makes sure that every mounting hole on your motherboard has one of these underneath and a screw is firmly tightened in every hole. If any of these columns are missing or the motherboard is not screwed down to them, it could cause your problem. Luckily you’re only working with 12v dc after the psu. Also check all the solder joints on the base of the motherboard to see if any are too long, especially on the capacitors legs etc, it’s not unknown for one of these to be just too long and just touch the case, therefore resulting in the occasional shock.