When I try to launch Minecraft through the vanilla launcher, it crashes with code 6. When I try to run forge it crashes with error 1. Vanilla launcher gives me a crash report, here is it: https://pastebin.com/iPDUW3nL. It happens only with the 1.19 version. Somewhere suggested to try to add "-Dfml.earlyprogresswindow=false" argument, but it doesn't help.
It cannot be the wrong java version because the crash report stated that the installed version is 17.0.3 and it's precisely the needed version for Minecraft 1.19
If there is a lack of information about the problem I would gladly give all that is needed.
Thank you in advance.