If the reason is really, superior skill of your opponents there's a bunch of very simple things that you can do. Move down limits, study more, change the poker room for a softer one, spend more time on table selection etc. etc.
Here's the thing. With poker being a game of very small edges where variance plays a huge role every player will run into those periods of time when you can't seem to win a pot. It's just the nature of the game. Now you have choices. You can quit, you can change your approach to the game and deemphasize winning for example, you can also wallow in your misfortune. Or you can take an alternative approach and as
@jongordon84 suggests inject some logic and realize that there's only one variable that you can actually control in all this - your win rate. Every second you spend on feeling sorry for yourself is a second you could be spending on improving your skill which will, in turn, decrease the frequency and severity of downswings (which, again, are inevitable). We're all humans and emotional reactions are natural so you might want to deal with that by taking a break or trying to increase your self-awareness through meditation, but ultimately it all comes down to increasing your win rate being an answer for everything.