Like the prior threads here indicate, I believe a diverse, bio-rich, system is key. My new tank (started one year ago) lacked all microbio diversity. Yes, it cycled and could consume ammonia and nitrite, but it was a desert in terms of biological diversity.
This, in large part, let to a dinoflagellate bloom that took months to resolve, I believe, and as others have suggested and written on.
A big part of my strategy was bacteria and micro fauna boosting; along with UV, shutting down protein skimming for several hours a day, removing filter socks, stopping water changes, adding pods and small CUC. And feeding.
My tank at 13 mos. is as bio-rich as I think i could have made it through corrective steps. I have N and P. And no problematic plague dinos or problem algae.
I’m no pro at this, but my recommendation is to make your tank bio-dense on all eco layers. Even the smallest bacteria layers.
And I no longer dose bacteria (just a regimen of Microbacter7 months ago). I feed the system and the engine does what it’s supposed to do.