This little mod rewrites one function of the advancements logic to make advancements checking faster, and use less recursion. It should prevent StackOverflowErrors with advancements.
If net.minecraft.class_2985.method_12885 appears in the crash log, this mod is likely going to fix it. (Or net.minecraft.advancement.PlayerAdvancementTracker.updateDisplay if you are using Not Enough Crashes).
