To identify the Stock Item with the invalid HSN Code, follow the steps given below.
Press Alt+G > type or select GST Rate Setup and press Enter.
Select the Stock Items specified in the transaction.
Perform GST HSN/SAC Info.
Subsequently, you will be able to identify the item with the invalid HSN Code.