Nylon filament readily absorbs moisture from the environment, and it can get wet during the printing process itself. You need to store the filament in dry conditions and away from humid areas. When you’re not using it, a filament storage box with desiccant is an excellent option to store Nylon. If you notice bubbles or weak layer adhesion in your prints, your filament is most likely wet, and you will need to dry it before printing.
To extract any moisture from the filament, you can dry it in an oven at 160°F – 180°F for 6 to 8 hours. While printing, too, if you print Nylon directly via the storage box, it will minimize the chances of filament absorbing moisture.