Denmark is investigating a data breach affecting approximately 8.8 million people after unauthorized users gained access to its national population register.