Follow the steps below to safely replace the nozzle.
Use a filament cutter to cut the filament above the extruder.

Heat the nozzle and extrude the remaining filament from the hotend.

Carefully remove the silicone sock from the hotend.
If it is difficult to remove, heat the nozzle to 220 °C and use needle-nose pliers to detach it.
Warning: Do not touch heated components with bare hands.
Risk of burns.
Keep the nozzle heated to 220 °C.
Use a socket wrench to loosen and remove the nozzle.

Install the new nozzle and tighten it using a socket wrench.
Tighten while the nozzle is heated to ensure proper sealing.
Turn off nozzle heating.
After the nozzle has cooled, reinstall the silicone sock.