From Rob Blair's PR https://projects.blender.org/blender/blender/pulls/126309 . In the code that clamps the bevel amount, the existing code could get a denominator of 0 (from a tangent of a certain angle). This code uses a different calculation (diagram in the PR) that clamps when the projections of four specific edges onto another edge consumes the whole length of that edge.