Fast statistical analysis of rare failure events for memory circuits in high-dimensional variation space