Flights have diverted when passengers spent too long in the lavatory, or left their electronic devices behind there. But passengers don’t usually spend the bulk of the flight inside except when airlines take off with more passegners than seats.
One woman though spent 5 hours in the lavatory of her Icelandair flight because she tested herself for Covid while in the air, found she was positive, and was determined not to expose other passengers to the virus.