https://pubmed.ncbi.nlm.nih.gov/35840678/
The NIH might not be a preferred source for you, but the current understanding is that ED and masturbation is not correlated.
From everything I can tell, the "no fap" movement is mostly from incels and conservative Christians.