What material to use to patch a hole near a heater?
Use a fire retardant expanding foam:



Be sure to turn off the electricity to the heater first, then simply spray it in the gap, wait for it to expand and dry, then cut it flush with the wall and paint over it.