School stabbing trial collapses over jury problem