Flux avalanche in thin superconducting film with internal crack