To do so, you will have to allow import for HSN codes. Go to the doctype list, open GST HSN Code, and check “Allow Import (via Data Import Tool)” checkbox.
Hope this helps.