If version 22H2 is not installing correctly, your current version of Windows 10 may be very old and that is blocking the update, I need some information so I can provide you with the best solution to bring WIndows 10 up to date, so you can then upgrade to Windows 11.
1
Click your Start Button, type winver and hit Enter
Please provide a screenshot of the resulting dialog.
2
Click your Start Button, then just type msinfo and press Enter, please provide a screenshot of the resulting System Information window.