Thank you for the review! You start with 4 hearts. not because of a collision with a boss (you would never get gamaged by boss this way), but because of intentional design. By the lore, you fought monsters right before this battle and got damaged once (it's mentioned in a dialogue with a boss). So yeah it's not a bug
I'm glad you enjoyed the game ^^