This is why, at least when I think of it, I try to rotate the valves to the top so that I can sorta stand up when filling up tires and if I cant I try to stand or squat off to the side of the tire so Im not directly in front of it.
The thought of what happened to you seems to pop up now and then when I check the tire pressures and add air.