Hi,
SCOM 2019 can coexist with SCOM 2022 (see Supported coexistence), so it is possible to install a SCOM 2022 environment on the side, then you can make your SCOM 2019 agents report to your SCOM 2022 management group, and slowly perform a side-by-side migration.