The basic troubleshooting for error code 1006-4 is to repair the office program if it fails we need to uninstall and reinstall the program. The necessary steps may be helpful in understanding how to install Office and Uninstall/repair Office programs.
Windows 10
Press the Windows logo key + X to see a list of commands and options. (Basically, a quick way to get to Programs and Features in Control Panel.)
Click Programs and Features.
Click the Office program you want to repair, and then click Change.
Do one of the following:
In-Office 2021, click Repair > Continue.
In-Office 2019, click Quick Repair.
Office Windows 8
Press the Windows logo key + X to see a list of commands and options. (Basically, a quick way to get to Programs and Features in Control Panel.)
Click Programs and Features.
Click the Office program you want to repair, and then click Change.