It’s usually much easier to provide a helpful answer when there is a ‘Sandcastle’ with which the error can be reproduced. And in the sandcastle, the stack trace will also not be obfuscated, so there, it should be trivial to figure out where exactly the error is caused.
However, the message sounded familiar - that oddly specific value of 0.0125. So I’ll take a wild guess: Are you, by any chance, trying to render something (polylines) near one of the poles?
(The number of threads that can be found when searching for 0.0125 in the forum should be a hint that there’s something that has to be addressed, but for now, I’ll only point to When and how do you handle "Expected value to be greater than or equal to 0.0125" ? )