A common defense mechanism that protects you from an uncomfortable feeling is reaction formation. This mechanism involves expressing the opposite of what one truly feels, often to hide or suppress uncomfortable emotions. For example, someone who feels anger towards a colleague may behave overly friendly towards them instead.
If you have any questions about other defense mechanisms or need further clarification, feel free to ask!