how to avoid nocturnal emission?

i reduced watching p**n from jan 2025. i only fapped 3 times since jan. i get feeling to fap but i am controlling. during night time i get some wet dream and fap automatically happens. my pant gets wet. i get pimples whenever i fap so this is one added disadvantage

how to avoid getting wet dreams? and these emissions?