I could have bitten my tongue off
I immediately regretted saying something; I wish I could have stopped myself from saying something. I could have bitten my tongue off as soon as I made tasteless joke. As soon as the ridiculous response was out of my mouth, I could've bitten my own tongue off.
I could have bitten my tongue off
used to convey that you profoundly and immediately regret having said something.