It shouldn't be a failure. General principle in D&D 5e is that you have to meet the DC. And ability checks don't have critical hits or misses, that's only for attack rolls.