Ok guys I'm 17 and I've got this weird masturbating problem.

Basically I feel tired and anxious if I fap but if I don't for 3+ days I am too horny and I imagine sex scenes during class instead of actually paying attention.

How do I approach this?

(Dont want to go on nofap streaks so pls dont recommend that)