>>7799876it can happen but it's a result of underlying trauma. for example when you think that you or others don't "deserve" good feelings.
also there's self-defeating personality disorder, which is described by the following:
—chooses people and situations that lead to disappointment, failure, or mistreatment even when better options are clearly available
—rejects or renders ineffective the attempts of others to help them
following positive personal events (e.g., new achievement), responds with depression, guilt, or a behavior that produces pain (e.g., an accident)
—incites angry or rejecting responses from others and then feels hurt, defeated, or humiliated (e.g., makes fun of spouse in public, provoking an angry retort, then feels devastated)
—rejects opportunities for pleasure, or is reluctant to acknowledge enjoying themselves (despite having adequate social skills and the capacity for pleasure)
—fails to accomplish tasks crucial to their personal objectives despite having demonstrated ability to do so (e.g., helps fellow students write papers, but is unable to write their own)
—is uninterested in or rejects people who consistently treat them well
—engages in excessive self-sacrifice that is unsolicited by the intended recipients of the sacrifice