An injured horse that returned to racing work months earlier than a vet recommended later collapsed in training, killing an apprentice jockey.