Your choice is dependent on "how" you are losing and your mindset/state of mind.
A - Take a break: This is true if you are not playing your "A+ poker" or are tilting etc. Even the best players take breaks for a day or two sometimes: poker is a very mental game and a refresher can help a lot.
B - Keep playing but study new poker strategies: The "keep playing" part goes with the "take a break point above" but the "study" part is always a must. We should always be working on our game. The game of poker is always changing. The math is the same, but player tendencies come and go so the best players in the world need to adapt. The moment you stop learning is the moment everyone else begins to surpass you.
C - Quit the game altogether: this is is a real possibility if you lose the love of the game or can't handle the tilt, mindset,
bankroll management skills or many other reasons.
In my view, everyone will run bad eventually; variance is real and cooler
hands/bad beats happen to everyone. If you are constantly on the "bad luck" end, then investigate if it really is "luck" or not - maybe it isn't really luck-based. If it is indeed just luck, then the game will eventually turn around for you if you just have faith in the system and your abilities. In the meantime, you can keep studying and learning (as always anyhow).
I wouldn't quit just because of some bad beats, but if you really are tilting too much, or lose your motivation to play, then quitting is understandable as well.
Good luck; it will probably turn around after a while