Weight doesent really matter for crank length, maybe power to weight ratio but that is more difficult to quantify. Anyway there are many factors and no one right answer so I made up a chart a while ago that is just a rough guide on where to start.
I have an updated version on my computer with the 32" wheel
I don’t know how to coppy image addresses on this thing