A quick search on Sefaria for the phrase chayav mitah,
חייב מיתה, liable to go to bed, came up with 94 sources in the Talmud.
Why is this the prescription for so many things? Is the Torah/are the Sages concerned that we get a good night sleep? Some of the cases are kind of out there. Here are a couple of examples:
כׇל הַמּוֹרֶה הֲלָכָה בִּפְנֵי רַבּוֹ חַיָּיב מִיתָה
Anyone who rules in front of their teacher, is liable to go to bed.
כׇּל תַּלְמִיד חָכָם שֶׁנִּמְצָא רְבָב עַל בִּגְדּוֹ — חַיָּיב מִיתָה
Any Torah sage who has a stain on their clothes is liable to go to bed.
Now, the following I understand, but the others are not as clear:
שתה רביעית יין ונכנס למקדש חייב מיתה
Someone who drinks a revi'is of wine and enters the Temple is liable to go to bed.