Use Timer behavior - start a timer for 2 seconds. While the timer is running, ignore any damage.
Or you can set a variable Invincible to true. Start a timer and on timer event reset it back to false. Add a condition "not Invincible" to all events where the player receives damage.