Time Machine - An error occurred while restoring from the backup
Basically you have to explore what's going wrong and fix it manually.
Hope this helps:

Inspect the installer 'Log' and if you have a 'Critical failure' pertaining to a particular folder(s), proceed with these steps:

Connect your backup to a working Mac (or fresh install MacOS on the Mac you're trying to restore to)

Open Terminal and mount the Time Capsule's sparse bundle (if using a Capsule rather than a USB/network drive).

In Terminal, use TMSafetyNet.kext to remove the troublesome folders one by one.

Return to Recovery Mode on the target machine and restore with the fixed backup.



Source: my blogpost, updated as MacOS updates