Maybe you need a mosfet driver. Do you haev a pull-up resistor? I suppose so. This need to be small, smaller than 1K. And also, the frequency (if you use a resistor) must not be very high, otherwise the overheat is normal. Check for mosfet drivers in maxi, harris etc. IRF530 is enough for 5 amps. You need also a heatsink.