To trigger invincibility, wait until the umbrella has spun around three times and is sitting on your head. Then wait for your energy bar to fill up completely, and click the green heart to give yourself more energy. Once that's done, you'll be good to go.