So, with just one of the above two methods, you can fix the Behavior:Win32/Hive.ZY Windows Defender error and not be bothered or flagged as malicious.
In addition, if you do not want to use Windows Defender, you can also refer to how to turn off Windows Defender here to be able to download and install files of unknown origin on your computer.