Basically, some previous versions of Office, Visio, and Project must be uninstalled before installing Microsoft 365 Apps. If they aren’t uninstalled beforehand, the installation of Microsoft 365 Apps will fail even the RemoveMSI feature has been enabled.
Besides, a reboot is required to finish uninstalling the MSI versions of Office. You must reboot the device manually.
Update
For more information about RemoveMSI, please click the following link.
https://learn.microsoft.com/en-us/deployoffice/upgrade-from-msi-version