Real Madrid could fail to reach the knockout phase of the UEFA Champions League for the first time since 1997.