Hello,
I don't believe Windows Server 2022 supports Office 2010 and 2013.
The links to the license packs for 2010 and 2013 are below, neither references Windows Server 2022 in the requirements.
Darrell
License pack for 2013: https://www.microsoft.com/en-us/download/details.aspx?id=35584
License Pack for 2010: https://www.microsoft.com/en-us/download/details.aspx?id=25095