[1.18.2, 40.0.12, 40.0.24, 40.0.32]
To start things off, I've tried a few simple things already, reinstall java, reinstall minecraft, but this still happens. I tried launching without mods and it worked. But I found out that if I put any mod in the folder then it would crash. I emptied out my config folder and the only file was fml.toml, fml standing for Forge Mod Loader. I tried changing some of the options, which there weren't many, but no luck. Since I don't know what logs are useful, here's all what I could find: https://github.com/voidconstruct/whymcnowork