Custominstaller.exe fails

I’m trying to install the 40th Anniversary Edition update. The installation starts normally, but then installation of packages goes to a certain percentage, it stops, and restarts at 0%. I left the update going overnight, and it was less than half done in the morning. When I uninstall MFS from Steam I get message “Custominstaller.exe has stopped working.”