hwmon: (g762) Fix overflows and crash seen when writing limit attributes