In-place upgrades are risky and never recommended. Better to clean install the operating system then migrates roles over to it. You can check here and with manufacturer about support for the operating system you plan to install.
https://www.windowsservercatalog.com/
--please don't forget to Accept as answer if the reply is helpful--