Does weight distribution on/inside the trailer have anything to do with sway?
Yes, you should aim for 15-20% of total trailer weight on the tongue. Any less and sway become more likely.
With more weight, the more on the tow vehicle the better. Within reason I guess, you don't want to put more on the tow vehicle than it can handle.