One option would be to check the Ethernet MAC address, but this can be spoofed.
An alternative would be to use the serial number in /proc/cpuinfo such as in this Xojo thread.
Such efforts should prevent most of the casual copying. However, a determined programmer can defeat that as well. See Dimitry's answer on a different thread.
What do you mean by image is corrupted ?
If it's an installation issue with WIn32DiskImager, here's my experience:
I just installed Raspbian on an SD Card this morning and I got an error too but went to Raspbian official doc and found Etcher which work really well and even have a portable version !
Here's the release page of their Github, you'll find what ...