If it hurts more than it makes you happy then take the lesson and leave. You will be okay. Some people are only rehearsals for the real thing.
Pain has a crucial role in our lives because it acts as a learning lesson which makes us wiser and more adequate in dealing with life’s idiosyncrasies. When we engage with our suffering completely, we reach a place where pain transforms into acceptance and love.
Never blame anyone in life. The good people give you happiness. The worst people give you a lesson. The best people give you memories.