Pretty much as the title states.
If a player is under the effect of a potion of speedpotion of speed:
When you drink this potion, you gain the Effecteffect of the hastehaste spell for 1 minute (no Concentrationconcentration required). The potion’s yellow fluid is streaked with black and swirls on its own.
or a Potion of Heroismpotion of heroism:
For 1 hour after drinking it, you gain 10 Temporary Hit Pointstemporary hit points that last for 1 hour. For the same Duration, you are under the Effecteffect of the blessbless spell (no Concentrationconcentration required). This blue potion bubbles and steams as if boiling.
Do those effects wear off if the player is reduced to 0 hit points and becomes unconscious before the 1 hour-hour duration is over?