I am not sure, but from the sounds of it, your tree may have been attacked by a borer. In eastern North America we have to look out for flathead appletree borers, and invasive longhorn beetles in select areas where the latter have established a foothold. I am not sure what you ought to do now, but the extended area of damage under the bark would suggest larvae have been tunneling.