On quantum compatibility of counterterm deformations and duality symmetries in N≥5$$ \mathcal{N}\ge 5 $$ supergravities