@unascribed for the record, there's a six-HP heart just before the boss battles start that you can get by spinning your cap on one of the rocky fruit stems
As long as you don't die none of the bosses respawn so you can keep going back and getting it whenever you need life