Populations of individuals exist in a wide range of sizes, from billions of microorganisms to fewer than ten individuals in some critically endangered species. In any evolutionary system, there is significant evolutionary pressure to evolve sequences that are both fit and robust; at high mutation rates, individuals with greater mutational robustness can outcompete those with higher fitness, a concept that has been referred to as survival-of-the-flattest. Previous studies have not found a relationship between population size and the mutation rate that can be tolerated before fitter individuals are outcompeted by those that have a greater mutational robustness. However, using a genetic algorithm with a simple two-peak fitness landscape, we show that the mutation rates at which the high, narrow peak and the lower, broader peak are lost for increasing population sizes can be approximated by exponential functions. In addition, there is evidence for a continuum of mutation rates representing a transition from survival-of-the-fittest to survival-of-the-flattest and subsequently to the error catastrophe. The effect of population size on the critical mutation rate is shown to be particularly noticeable in small populations. This provides new insight into the factors that can affect survival-of-the-flattest in small populations, and has implications for populations under threat of local extinction.