Failing three-star with two mistakes

On a couple levels in world 1 now, I’ve finished on three-star difficulty but with two mistakes, and it gives me the failure jingle and no credit for the difficulty. They’re labeled as allowing up to two mistakes; should I be passing these or not?

What happens when you only have one mistake?

It seems to pass with just one mistake. I feel like it’s a typo on the difficulty select screen, since all the other parts get a little harder going from two to three stars, but the allowed errors supposedly stays at 2