Incapacitated Mod (1.19.2, 1.18.2) alters your death mechanics so that you don’t die immediately if you lose all of your hearts. This mod allows you to choose between life and death. It also gives you the chance to recover. Inspiration from revive systems in many games of different genres. Payday 2 immediately of note
If you suffer enough damage to cause death (and you have no other means of preventing your death, modded and otherwise), you will be rendered incapacitated and remain in a crawling condition. You can either eat an enchanted gold apple to revive yourself or have a friend crouch nearby to help you. It is possible to become incapacitated three times before you die immediately.