The mod causing the problem according to the error log in the attached file is the "Terralith" mod version 1.21.xv2.5.12. The issue is related to errors in the mod's data files within the game, especially in the configuration data and files related to the game world (Worldgen configured feature), and errors in the mod's JSON files, such as the error in the "cavefrostfirefrostfireceiling.json" file which failed to load properly due to undefined registry values inside the game.
The errors indicate that the "Terralith" mod contains outdated or incompatible definitions with the game version or the Forge version used, causing data loading failure and resulting in problems or crashes.
In summary, the "Terralith" mod is the main cause of the problem in this context.