When Windows gets stuck at the same percentage, it's usually because something's blocking the process from writing new files to the disk. The first thing you should do is check if you actually have enough free space - you need at least 20-30GB free, not just taking up space but actually available. Go to Settings > System > Storage and see how much you've got free. If you're low, delete some temporary files, empty the trash, and even uninstall programs you don't use. There's that CCleaner software that helps clean up temporary stuff, but the basics usually do the trick.
After that, disable third-party antivirus programs (like Avast, AVG, Kaspersky) during the update. Some people don't believe it, but those programs really do go through checking file by file while Windows is trying to install, and that causes freezing. You can leave Windows Defender on, but actually shut down the others. Also, sign out of any Microsoft accounts you have connected, remove unnecessary USB peripherals (wireless mouse and keyboard sometimes cause problems), and keep your PC plugged in throughout the whole process. If it still keeps freezing, try booting into Safe Mode (press F8 on the boot screen) and try the update from there - with fewer programs running, it usually works better.
If none of that fixes it, go to Settings > System > Recovery and choose the option that says something like "Reset this PC" and check the box to keep your files. This basically reinstalls Windows but without losing your documents and photos. It's kind of the last resort because it takes a while, but it usually clears out any junk that's in the way.