So, this kind of question is really difficult to answer absent of the context of what type of game we're talking about. The structure of the game, as well as the intended Aesthetic of Play, is instrumental to determining what kind of penalty for "death" is appropriate.
If you consider the Game Over to be the 'default' penalty, then examine what the Game Over usually entails: usually losing anything you've earned since your last save, and repeating that segment of the game to get back to where you were when you died. This is useful because it can encourage risk-reward tradeoffs (push forward, or exit the dungeon safely?) and avoid negative spirals that come from things like monetary penalties. This is also annoying, especially in RPGs, because immediately repeating the same content in RPGs tends to offer nothing interesting or enjoyable.
Ultimately, as the designer you have to ask yourself what you want the possibility of a failure state, and the ensuing penalty, to contribute to the player's experience. (You also have to ask yourself what Aesthetics of Play are the most important to enjoying your particular game, and make sure that your planned penalties don't interfere with those Aesthetics!) That's why some hardcore roguelikes literally delete the player's save file (or character) upon dying, whereas
Pokemon dings you half of the money you have on hand and lets you keep everything else you've earned.
Meanwhile, in most modern platformers, what you often see good developers do is include a save point (or automatic checkpoint) between every distinct challenge, or between short sets of challenges (especially if a "lives" system is used). The beauty of this is that it forces the player to prove their mastery over a set of mechanics by chaining them together during the challenge (you can't simply save after every single action). But if the player fails, they're asked to try that challenge again, and do it better. They're not punished by being forced to complete an entire level again, or restart the game. Once they've proven their mastery, they're allowed to move on to bigger and better things without being forced to tread ground they've already conquered.
As one example of a unique type of game that demands a unique solution, I'm developing (well, remaking) my game
How Badly Do You Want It?, where the goal of this RPG is to earn enough money to pay off a loan before deadlines hit (similar to the popular game
Recettear). Each day, you can engage in an activity to try to earn some money - many of which involve combat. The game is meant to feel 'competitive' - you often fight against other characters and expecting the player to win every combat would destroy that feel. So the penalty for losing a battle is simply that the day ends, and you can't earn any more money that day. This is a blow to your overall goal because you only have a limited number of days to work with, but it doesn't cause you to lose anything you've earned and you don't need to repeat something you've already done just because you lose a battle. I can get away with the only loss being "the lost opportunity to gain even more", because of the larger structure of limited days to earn enough money.
- You may be wondering what happens if the player encounters the ultimate failure condition, which is failing to meet a deadline for paying off the loan. Originally, this was a straight-up Game Over (where you need to load an older save file). I noticed this caused a lot of pain for players in the original version of How Badly, so in this remake what I plan to do is automatically rewind their game seven days, and let them keep character stats they've gained as well as any rare items they were lucky enough to earn. The activities are diverse and variable enough that it won't feel like you're doing the exact same thing over, and more importantly it won't feel to the player like they're losing out on all the things they "experienced" during the losing run. Instead, they're essentially being challenged to "do it better", with a slight head start based on keeping the stats and rares they earned during the losing run.
@Ace of Spades Great post!! I don't think I've seen any of your design-related thoughts before, but now I am looking forward to seeing more of your posts!