Hi,
I’m sorry to inform you: your cartridge is fake. These issues are caused from having a reproduction, non-authentic copy of the game. This cannot be fixed.
Heartgold cartridges are black in colouration, should say NTR-031 on the back. (Keep in mind, that just because a cartridge says NTR-031 and is black, that doesn’t make it authentic).
Reproduction cartridges are prone to errors like you’re describing. HGSS reproduction cartridges are known to black screen during Voltorb Flip as well. You should try to file a return where you purchased the cartridge from for your money back.
Legitimate Heartgold cartridges often cost over a hundred dollars.
Before and after purchasing a cartridge, you should post photos of it on r/gameverifying to confirm its legitimacy. They also have great guides on how to tell if a game is authentic or not.
I hope this helps