When you start to feel sorry for yourself and feel the buildup of anxiety, try to acknowledge and know the difference between your emotions and your actual reality(rational mind). Meditate and try not to let your emotions overwhelm you. Nothing is permanent, pain is not permanent, being down is not permanent. Challenges always makes us a better/wiser person after the storm has passed.
Besides meditating, my way of coping is by looking at how other people around me are doing and reflect. Sometimes I think my situation is bad, but there will always be others who are at a worse situation than me and need my help. I'm currently staying in a rather challenging neighbourhood due to covid whereby I think it is best to save money during unprecedented times like now and not indulge too much in rent. There are many elderly folks(love the elderly neighbours, they are kinder and wiser) around here who would sometimes sit at the void deck alone by themselves. I would approach them and chat and give them some money or some food(from my flat upstairs). It always lift up my spirits when I lift others up.