When you are running a version that has reached end of support, it is impossible to update via Windows Settings > Updates. That's the whole point of being at end of support, update is no longer pushed via Settings.
You may or may not be able to run the Installation Assistant tool to do inplace upgrade. https://www.microsoft.com/en-us/software-download/windows11 Download the tool and run the update option. The reason it may or may not work, is because this route only works if the gap is not too big. Being 22H2, it is hard to say. There's a good chance this route will also fail, but it doesn't hurt to try that first.
If it fails, clean install is the only option. Make sure you backup your important personal files first.
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.