For heaters the wire/circuit is limited to 24 amps (80% of circuit capacity) and a 5000 watt heater draws less than 21 amps, so you are not even fully loading the circuit to the NEC limit, much less to the 30 amps the circuit is fully rated for.
Charles