I looked at an other post that had similar issue but that fix didn't work. Im also using forge 1.18.2-forge-40.2.1 .
https://pastebin.com/SiBgS1W0 is the crash report.
The game crashed whilst rendering overlay Error: net.minecraftforge.fml.config.ConfigFileTypeHandler$ConfigLoadingException: Failed loading config file forge-common.toml of type COMMON for modid forge.
Error code -1
(issue was fixed)