I have just been through this myself. Clogged pre filter on my Volvo engine. Primary fuel filters ideally should be inspected regularly and replaced whenever contamination is suspected. Usually after major prefilter blockages. I generally do before any major trip offshore.
Many replace them annually regardless of hours. I use a risk based approach and only when necessary as the pre filter does all the work.
The bigger issue is carrying spares. Fuel contamination rarely occurs at a convenient time and a clogged filter is one of the most common reasons a diesel engine suddenly loses power. I buy after market units for my prefilter as half the price of the branded ones. I carry a dozen! Plus a couple for engine mounted unit.