As the error message suggests, this is expected behavior.
The RDBMS high availability section of the Editions and supported features documentation of SQL Server 2022 lists Contained availability groups as available only on Enterprise, Developer, and Evaluation Editions).