If you believe you need to apologize for something, apologize specifically for what you did wrong.

Do NOT, for goodness sakes, add any qualifiers or the dreaded “but.”

Then be quiet.