Stabilizing the singularity swap quadrature for near-singular line integrals | Synapse