Bayern lost its first match loss of the tournament as it struggled to find a rhythm ahead of the knockout stages later this week.