This error message will appear in the editor if the .hex file you are trying to load was created in another editor such as, or in a different version of the python editor.

This article explains the same error in the MakeCode editor


Load the .hex file in the editor in which it was created.