I have setup a clean new profile on CurseForge with forge 1.18.2 40.1.0 (Recomended Version) and on start with no mods i get exit code 1,
My java version is up to date (Version 8 Build 333)
I have uploadad Latest, debug and launcher log on workupload you can find it here: https://workupload.com/archive/xGaV2cpp