Version 22H2 has indeed reached end of support. What that means is, update is no longer pushed over, so there's no way you can update it via Windows settings.
The current version is 26H2, so you are missing quite a few significant versions in between.
Normally, if you are not missing too much in between, you can download and run the installation assistant and update from there.
https://www.microsoft.com/software-download/windows11
Download the installation assistant tool, and run it and upgrade it from there.
However, I fear it could fail considering you are missing a lot in between. Still won't hurt to try it. But if it fails, you need to back up your files and consider a clean install.
Video tutorial is available here: https://www.microsoft.com/en-us/windowsinsider/cleaninstall?msockid=2f024275e21f64ea3c9c52cde3346537
The following steps should be done on a working Windows computer:
Download the Windows Media Creation Tool from Microsoft's official website. https://www.microsoft.com/software-download/windows11 click on the "download now" button under "Create Windows 11 Installation Media"
Run the tool and select "Create installation media for another PC."
Choose "USB flash drive" as the media to use for the installation and select "Next."
Connect a USB flash drive with at least 8 GB of free space to your computer.
Select the USB flash drive you want to use, and then select "Next."
The tool will then download the required files and create the installation media.
=====================================================
Now these steps will be done on your problematic computer:
Go to the computer's BIOS boot menu to have it boot from the USB drive.
Follow the on-screen instructions to install Windows 11, making sure to choose "Custom install" and select the option to delete all existing partitions.
Once the installation is complete, you'll have a clean installation of Windows 11 on your computer.