What happens if you're in the middle of installing windows 10 and the computer shuts down?

Solution
Your Windows will probably be corrupted and you'll need to completely wipe the installation and reinstall.

This would not affect the motherboard.