Troubleshooting guide
How to fix the problem
System Settings > General > Software Update; make a Time Machine backup before a major upgrade.
If the problem persists
Check model compatibility, free space and stable internet. If the installation stops, make a note of the error and keep a copy; don't erase the drive as a first attempt.
Request a repair