If there is an issue in the library, the announce topic asks that you post library related issues on GitHub:
It compiles for me using Arduino IDE 2.2.1.
The error messages imply that you’ve uncommented the notes above the
SX1262 radio = new Module(18, 26, 23, 33);
or made some other modifications, intentional or otherwise.