Guard the auto expand replicas setting against improper values

This is the PR for Issue #5752

It updates the documentation to be more precise, and adds guards in the code to ensure the values are recognized, and if not it emits a log message and throws an exception with a more helpful message.