AI's insatiable code appetite clashes with critical security breaches and a funding drought for startups.