Summary:
When the player exits powder snow/water that is one block above the ground by sleeping in a bed, the freezing/drowning effect does not stop until the player exits the bed.
Steps to Reproduce:
Place a block of powder snow/water one block above the ground
Place a bed nearby
Set the time to night
Switch to Survival mode
Stand partially inside the powder snow/water
Wait until the player starts taking freezing/drowning damage and then sleep in the bed
Observed Results:
The freezing/drowning effect does not stop and the player continues to take damage, causing them to be kicked out of the bed. When they are kicked out of the bed, the freezing/drowning effect stops.
Expected Results:
The freezing/drowning effect should stop when sleeping in the bed, as the player is no longer standing inside the powder snow/water.
Videos:
Does that happen with lava damage and drowning too?