My surface book received an update for touch firmware and when it restarts to install the firmware I see that it tries to install the new firmware 2 times. but each time it fails and the SB get restarted. The touch screen on my SB has stopped working since January 2018, and I think if I install this new firmware maybe it gets to work. Is there any solution for that?

An obvious question: Have you tried a clean install of Windows 10, or a Reset (either 'Keep my files' or 'Erase everything')? If all your documents are saved to OneDrive, you can retrieve them back after the re-install.

I am asking, because if the touchscreen is not working, it is likely that Windows is slightly corrupted, and a firmware update would not help.