need to upgrade first to 2012 R2 Standard
to convert you can
Dism /online /Set-Edition:ServerStandard /ProductKey:xxxxx-xxxxx-xxxxx-xxxxx-xxxxx /AcceptEula
then do the in-place upgrade to 2022
That's unlikely to work. They generally support a single version jump so 2012 R2 to 2019 would be as good as it gets.
--please don't forget to upvote
and Accept as answer
if the reply is helpful--