I solved the problem. It has to do with how the surfaces are created in solidworks. The key is to avoid extending surfaces that don't quite touch other surfaces, then trimming them back in order to join them with the surfaces. It's best to make the sketch larger, then trimming back the resulting too-large surface.
I've made some slides to illustrate.