Cosmology of barrow holographic dark energy with generalized infrared cutoffs and validity of the generalized second law of thermodynamics | Synapse