Both are dangerous. Over-voltage means bullet straight to head
while with the heat the life time of the CPU is reduced. You should read and check the safe voltage threshold which the manufacturer provides in the manual. while the heat can be controlled by using coolers. Pl note that over voltage means overclocking which means more heat. In that way they are linked but both are different.