Processes in Microsoft 365 for setting up Office apps, redeeming product keys, and activating licenses.
I am sure an incorrect configuration is added, so unable to install it.Use office deployment tool to install office 365
here is website link Overview of the Office Deployment Tool - Deploy Office | Microsoft Docs