I guess you accidentally installed the bootloader/uefi on your secondary hdd.

you can just boot to windows 10 installation disk and perform a repair. of course do this repair while your 2nd hdd is unplugged.