Sometimes the office products will install due to many reasons such as internet connectivity, dependencies for the product, or any viruses that affect system files, etc. Perform a clean installation to remove the traces of office program files that existed from older versions or by multiple microsoft 365 or office 2021/2019 installation trails.