This is a log from vanilla 1.19
maybe switch to a custom Launcher like MultiMC or AT Launcher
Install a Forge 1.20.1 modpack and use it as working base - then just replace/add/remove mods from the mods folder
There are two java lines and the / are mixed up
Use this as script:
"C:\Program Files\Java\jdk-17.0.10\bin\javaw.exe" -Xmx8G -Xms2048M @libraries/net/minecraftforge/forge/1.20.1-47.2.0/win_args.txt %*
pause
Replace the complete script with it (you don't need the REM lines)
Make sure the java path is correct and keep the quotation marks
How did you change to Java 17?
Set the path in your script: replace the word Java with the Java 17 path (to the javaw.exe) and put the path into quotation marks
And make sure there is no nogui entry in the script