How long is it getting stuck for? What made you reinstall macOS in the first place? Was it because of problems you were experiencing, and if so, what kind? Unless the hard drive is corrupted or malfunctioning, the installation should complete.
If you know someone who is also running macOS, see if he or she will allow you to create a bootable disk of macOS and then use it to do a clean install.