J'ai commis un grave impair.

English Translation

I made a serious mistake.

wikt doesn’t have this meaning: ‘Maladresse choquante, faute de goût ou de tact’ (Larousse).