Hi there! My name is David. It’s a pleasure to help you today.
Thank you for sharing your issue. Based on what you included in the screenshot, it is possible that the account you are using to install the game does not have the license associated with it.
Are you trying to install the game with a Mojang account?
What may have happened is that the Mojang account you used to purchase the game more than 10 years ago needed to be migrated to a Microsoft account in order to allow you to install the game. According to the information I found, the deadline to complete the migration was September 19, 2023. If the migration was not done before that date, it is no longer possible to complete it.
https://www.minecraft.net/it-it/article/account-migration-last-call
Did you migrate your Mojang account to a Microsoft account?
Let me know if the shared information has been helpful. Regards.