I mean, when your character takes too much damage.
Pokémon may attack the player in the overworld, and the player may also take damage by falling from high places. Taking too much damage will cause a black out.
Source