This might be misleading. Blacking out from hyperventilation is not the same as shallow water blackout. Extreme hyperventilation can cause the Carbon Dioxide (CO2) in your lungs and blood stream to fall too low to stimulate breathing, which causes the body to shut down.
Shallow water blackout occurs when freedivers consume enough oxygen that the PPO2 in their lungs and blood stream at depth falls near hypoxic limits. They black out from hypoxia on ascent when the pressure drops and the PPO2 becomes too low to support consciousness.
That wouldn't be possible for a Scuba diver, even in 20' of water, because their tissues are hyper-saturated with Oxygen from their time at depth. It would require holding their breath on the bottom long enough to deplete the O2 in their system, which would cause very high CO2 levels. That is very hard to do voluntarily. An OOA diver might black out for CO2 poisoning, but that can't sneak up on you. In addition, holding their breath on ascent would embolize them.
It is not uncommon for freedivers that push their limits too far to black out just after reaching the surface and taking their first breath. Their tissues are depleted enough that their first lung full doesn't get into their blood stream before the body triggers the blackout, which is basically shutting down everything except blood flow to the brain. The problem is freedivers will fall face-down and drown if their buddy isn't there to help.
Freediving courses train you to dive in teams so their buddy stays on the surface while the other dives. The buddy follows the diver and is there when they break surface. The diver is supposed to signal the buddy for about 10 seconds, through hand signals or speech, until the risk of blackout on the surface passes. Of course the buddy is there in case the diver blacks out before leaving the surface. Buddies in competitive apnea diving will dive down to meet their diver at around 30'/10M and follow them up. Deep freedivng buddy pairs may also do that but it might not be practical in low visibility.
This is extremely rare with inexperienced and otherwise untrained freedivers because their tolerance to CO2 isn't developed enough to deplete their Oxygen that low under normal conditions. CO2 buildup is what causes the desperate urge to breath, not low Oxygen. Freedivers can develop a tolerance to CO2 over time and through conditioning. That was especially interesting to me because the amount of time past the point where you start to feel desperate to breathe is MUCH longer that you would imagine before you actually black out.
The lesson for Scuba divers is don't panic, which is really hard to do with CO2 buildup, but can easily be the difference between killing yourself and having a great sea story to tell your grandchildren.