Robust, flexible, and scalable tests for Hardy-Weinberg Equilibrium across diverse ancestries