Old article but I'm sure the science hasn't changed: https://hackaday.com/2016/02/01/3d-printing-fumes-new-science/
Basically, if you are printing with PLA you are probably pretty safe. But I still don't think I would sit in a tiny closet and hotbox with my printer. An open window or carbon filters on your HVAC are probably more than sufficient. And PLA is the most popular type of filament, so you aren't limited much there. Unless you need higher temperature parts to withstand sun or car interiors. Then you are getting into materials you want to start looking into better ventilation for.