One idea is that time and space started with the big bang. So asking what happened before the big bang is somewhat pointless because causality did not exist. Things could happen without cause or consequence.
PS: Our preconception of how reality operates break down on the vary large, the vary fast, and the vary small. Trying think how things operate without matter, energy, space, or time is something of a fool's errand IMO.