Filament gets stuck in K1C nozzle after filament runout

Hello!

Is there a way to force a Ender 3 V3 SE to retract filament whenever the filament runout sensor detects a filament runout?

I installed a ceramic heating element that features K1C quickswap nozzles. Sadly, whenever there is a filament runout and I am not home to fix it, filament gets stuck within the nozzle, totally blocking it. I have already “lost” two nozzles to this - will try to blowtorch them today, as the oven wasn’t enough.

Removing all filament after a runout would likely fix this issue - heatcreep cant affect filament that isn’t in the nozzle, after all - but I don’t know how to make the printer react this way.

What code do I need to change and how do I change it?

Hope you can help me with this one, as my printers are entirely unusable until the new nozzles arrive or the old ones are burned clean.

with best regards
-Mira