The epic cost the venerated director 40 years, a personal fortune and a critical backlash.