The former principal of a private Perth school has died suddenly - a day before a court appearance for posessing child exploitation material.