Looking aside from the feasability of these points in a technical manner, there are additional concerns to sleeping (or living) in the same room as a running 3D-Printer (especially a non-enclosed one).
The first of course is a possible fire hazard, though from what I’ve heard, this is not a common occurence with these not self-assembled machines from BambuLab. It was more of a problem on older, more DIY machines on which you sometimes did your own wiring.
The second, larger point, is air pollution, specifically by volatile organic compounds (VOCs) and PM2.5s (Particles with an aerodynamic diameter of less than 2.5 micrometers), that are commonly emitted during fused deposition modeling (FDM). There have been studies and investigations on the short-term effect of these emissions on an unventilated space, but since the home-use of these machines is still (relatively) new, no long-term effect studies have been conducted yet.
The general consensus however, is that these are probably harmful to your body, so spending large durations of time in an unventilated space with a printer is not a good idea. The amount of particles and how bad they are for you varies by material, with ABS or ASA generally emitting more, while printing PLA emits fewer particles.
There are two main things that you can do to counteract these effects:
- Filter the air in your room
- Ventilate your space well (exchange the air with fresh one)
How well filtering works depends on what type of filter you use and how good it is at filtering out the specific particles that your printer emits. The total effect however is bounded by an upper limit and a small filter often takes a long time to filter all the air in your room. This performance can be improved by attaching the filter directly onto an exhaust for enclosed printers (e.g. X1C, P1S), but this can only be done for open-style printers (P1P, A1, A1mini) by building an additional enclosure.
The best way to prevent the particles from harming you is of course to vent the air from the printer directly to the outside, or by regularly (or continuously) venting the entire air in your room. The effectiveness of this of course also depends on the air quality in the city you live in, as big cities also often have a lot of fine particles that can be bad for you. Venting the air from a printer exhaust directly to the outside is of course again easier on enclosed printers, and only possible for open printers by building an enclosure.
In conclusion, sleeping or spending long amounts of time in an enclosed space with a running 3D printer is probably not the best for your health, though the exact long-term effects are not yet well-understood. This also depends a lot on the types of materials that you are printing. Filtering the air in your room or exchanging it for fresh one from outside is always a good idea though, and building a specific exhaust system for your printer is also not a bad idea, especially if you are printing some of the more advanced materials.
Here you can find some more resources that you can use if you are interested in more information or some hard numbers: