Hi, yes and if it is what I think there is no way around the problem that I can think of. I would be very interested if Microsoft Support can do any solution.
I take it that you uninstalled Office Professional Plus 2021 and you are trying to install Office Home 2024 (or Home and Business 2024). Although, the Office Pro Plus 2021 is illicit because it is volume based and sold as a retail version, Microsoft identifies it as the best version for you. Although you have uninstalled it from your hard drive, it is still is on your Microsoft Account at: https://account.microsoft.com/services and Microsoft pushes it.
Contact Us - Microsoft Support sign in>Search for>Installation Office>Get Help>Keep your eye on the bottom of the page for>Contact Support. The only way to solve the problem is for Office 2021 to be removed from Services & Subscriptions of the Microsoft Account it is associated with, or at least to break the connection. The Agent is likely not to have a clue.
In some cases removing the credentials associated with Office 2021 may help