Handle invalid session modes from config file