I'm playing a custom modpack and everything was working fine but suddenly I started getting this error when trying to load a world. I researched it a bit and found out that it might be due to a corrupted world but it's happening on all my worlds and even on world creation. And if I click on "Safe Mode" nothing happens.
Here is my latest.log, in case that helps: latest.log (github.com)
The error message: error message (imgur.com)
This is on Forge 40.2.9 for Minecraft 1.18.2 btw.