How do I get rid of these black lines on my rendered model?

I clipped inside the model and there’s apparently light seeping through the edges of the faces the lines appear on:

Anyone know what causes this? I think that whatever causes this also causes the black lines on the exterior of the model.