There's a cheat activation. Hit

then

at the start of every level and you will still lose your hearts, but be invincible after that.
I would recommend only starting the first level if the first room you come to has chests or if first room is empty, if second room has chests, then continue.