Hello.
According to the official description:
An in-place upgrade from Windows Storage Server Editions is not supported. You can perform either a Migration or Installation instead.
Migration of Windows Server is when you move one role or feature at a time from a source computer that is running Windows Server to another destination computer that is running Windows Server, either the same or a newer version. For these purposes, migration is defined as moving one role or feature and its data to a different computer, not upgrading the feature on the same computer.
In this case, we recommend that you back up your data and then perform a clean installation.
Reference:
Overview of Windows Server upgrades | Microsoft Learn
Install, upgrade, or migrate to Windows Server | Microsoft Learn
Best Regards,
Hania Lian