Whenever I'm running bad I try to keep this in mind: If I genuinely believe I am just unlucky then there's nothing can be done about it and I should quit playing poker as I'm too unlucky to win. I don't believe anyone is essentially "luckier" than anyone else (some people have had more luck in their life than others but that's not the same thing) and I definitely don't want to quit poker. So now I have a choice, carry on as usual and hope I have more luck, or look for tangible reasons I may feel unlucky and try to fix it. In your specific case I would look back at all my 'bad beats', run some maths and see if my all-ins actually had a +ve EV. It could be that you didn't need to shove with all those hands, you may have had a better chance of getting value with a different play.
Basically what's easier to fix? Being naturally less lucky than your opponents or being worse at poker than them? To me it's clearly the latter so that's what I work on.
Also remember if you're all-in did have +ve EV and someone outdrew you then you were profiting in the long run. You smile, say to yourself "that's poker" and carry on. Easy, right?!