throw Invalid Configuration

Method to throw an error if the configuration is not valid, if the error is related to the appVersion will be instead used a specific message